You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reduce memory reads when looking up MIME type from extension
Since, by construction, the extensions are stored sorted and
sequentially in memory, if we're comparing only the strings found in
the blob generated by mimegen, we can compare only the pointers;
otherwise, fall back to two 64-bit reads, replacing the indirect call
to strncmp().
The extensions are now stored in big-endian rather than in host-endian,
making it possible to compare things properly. As a result, Brotli
liked the input data a bit more and was able to save a bit over 50
bytes; it's not much, but, hey, savings are savings.
0 commit comments