oga/ext/c
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
..
extconf.rb Use proper create_makefile 2014-09-02 20:27:20 +02:00
lexer.h Track XML C lexer state in C only. 2014-10-26 11:38:06 +01:00
lexer.rl Cache rb_intern/symbol lookups in the lexer. 2014-11-22 01:53:37 +01:00
liboga.c Don't redefine namespaces in C. 2014-05-07 10:52:06 +02:00
liboga.h Removed stdioh. #include. 2014-05-11 21:06:55 +02:00