Hacker News new | past | comments | ask | show | jobs | submit login

The CloudFlare x86-64 optimized version of the longest match algorithm is especially well documented.

https://github.com/cloudflare/zlib/blob/31043308c3d3edfb487d...

It's great material for anyone interested in these types of low level optimizations.




Thanks for the link, although I understand only half of what it is.

Do you know what the file extension inc stands for?


"include"

It's a fairly common extension for a file containing C implementation code (and not just headers) that is intended to be #included by some other file.


You know what, I was trying to find an example for Matt3o12_ where it was #included, but I can't even find the file at the tip of any of the branches. Can a better git archaeologist explain what happened to it? Did it get merged into another file?

Edit:

Here's an example of a .inc file being used

https://github.com/cloudflare/zlib/blob/31043308c3d3edfb487d...

Double Edit:

git log --all -p contrib/amd64/longest-match.inc

It was merged directly into deflate.c




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: