oga/ext/java
Yorick Peterse 4fa88fcbde Cache rb_intern/symbol lookups in the lexer.
For JRuby this has little to no benefits as it uses strings for method names.
However, both MRI and Rubinius will perform a Symbol lookup whenever rb_intern()
is called. By doing this once for all callback names and caching the resulting
VALUE objects the lexer timings can be reduced by about 25%. In case of the
benchmark benchmark/xml/lexer/string_average_bench.rb this means it runs in
around 500ms instead of 700ms.
2014-11-22 01:53:37 +01:00
..
org/liboga/xml Cache rb_intern/symbol lookups in the lexer. 2014-11-22 01:53:37 +01:00
Liboga.java Manually bootstrap JRuby after all. 2014-05-07 22:32:34 +02:00