]> git.wincent.com - wikitext.git/commit
Add custom string struct implementation
authorWincent Colaiuta <win@wincent.com>
Sat, 9 Feb 2008 11:39:13 +0000 (12:39 +0100)
committerWincent Colaiuta <win@wincent.com>
Sat, 9 Feb 2008 11:39:13 +0000 (12:39 +0100)
commit4f06bddc5d939a37b5759d04db81500513d770e4
treeca00b976bf802ea8985d9a276a58bf366bdbcf9c
parentbf79f031a86d6acadce38288ec743f734063d88c
Add custom string struct implementation

This is actually the result of some work on an experimental topic branch
which didn't work out. Now that we have the parser struct in place,
however, it should be possible to gradually make more and more use of
the efficient custom string struct instead of instantiating full-blown
Ruby Strings. Object instantiation is one of the most costly operations
in the translator, and it brings with it a corresponding cost in garbage
collection, so I'm hoping that this will lead to a nice speed boost.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
Rakefile
ext/depend
ext/parser.c
ext/str.h [new file with mode: 0644]