Revision e625f6c...

Go back to digest for 2nd September 2012

Optimization in Development Tools

Miquel Sabaté committed changes in [kdev-ruby] /:

Optimized the parser:

- Reduced significantly the memory usage for storing comments.
- Renamed the RAst struct to ast_t.
- Now the rb_compile_file just accepts one argument, containing all the
options. This is done because the contents and its length are already
calculated and, therefore, the parser can avoid potentially expensive
calls to strdup and strlen.

File Changes

Modified 5 files
  •   parser/main.c
  •   parser/node.c
  •   parser/node.h
  •   parser/parser.y
  •   parser/tools/tests/comments/expected.txt
5 files changed in total