Welcome! Please see the About page for a little more info on how this works.

0 votes
ago in Compiler by

The issue:
https://ask.clojure.org/index.php/13407/method-large-compiling-expression-unfortunate-clause-hashes

Logged as:
https://clojure.atlassian.net/browse/CLJ-2808

Possible approaches:
> One approach is to only allow smaller lookup tables.
Another would be to lift the lookup code for large tables into a function or a separate compiled method...

I suggest an approach that just measures a gap between tests.
No need to big span and shift/mask model.
If the gap is less than 128, then we use tableswitch; otherwise, we use lookupswitch.
https://github.com/clojure/clojure/compare/master...magnalium:clojure:dev-2808

Please log in or register to answer this question.

...