Syntax Highlighting With Extra Awesome
11 Jan 2008

Since Christmas I have been rewriting the core of the syntax highlighting engine in C as Ruby just wasn’t fast enough. I was a bit apprehensive about this, but the Ruby-C interface is very nice to work with, and toss in Glib and it’s really not that painful. There’s something deeply satisfying about profiling, re-implementing a single method in C, and getting a 66% percent speedup immediately.

I’ve made a ton of fixes too and it feels much more solid. No more crashes and the speed is approaching usable. (It can do 500 lines in about 3 seconds 1 second - roughly.)

Anyway I leave you with a spot the difference competition :). Thanks to Ludvig Widman for the lovely theme.

Redcar:

redcar-2-trimmed.png

Textmate:

textmate.png
blog comments powered by Disqus