Improve caching table:
authorKim Nguyễn <kn@lri.fr>
Tue, 28 Feb 2012 14:33:10 +0000 (15:33 +0100)
committerKim Nguyễn <kn@lri.fr>
Tue, 28 Feb 2012 14:33:10 +0000 (15:33 +0100)
commitd7c0e0d3ae22f01c69f0352a25db3eaaab02406f
treeb6bb4e070b12cee7c2924a5b470d2e1209c0e7ed
parentdc9e9ba2f50ce881c3a77743663829d661363d51
Improve caching table:
- uses the first used index as an offset. Allows to store
compactly tables indexed by 10000, 10001, ... without storing
the first 10000 that are never accessed.
- resize automatically if lower offset is accessed

Prevent caching overflow for large automata.
src/cache.ml
src/cache.mli
src/l2JIT.ml
src/runtime.ml