Changes by: Aleksey Nogin (nogin at metaprl.org)
Date: 2007-03-20 12:25:44 -0700 (Tue, 20 Mar 2007)
Revision: 10251
Log message:
Small optimizations:
- Made the add_bits truncate the last 11 bits ("land 0x7ff"). This allows us to
get rid of the unnecessary "land 0x3fffffff" in code computation.
- Bypass all the truncations when the argument is know to be small (e.g.
add_char).
- In add_int, use 3 calls (11 bits each) to add_bits (instead of 4 calls with
8 bits each we had before).
Changes | Path |
+25 -20 | libmojave/util/lm_hash.ml |
+2 -1 | libmojave/util/lm_hash.mli |