So, I quickly grabbed a copy of the "rope" library. https://rubyforge.org/projects/rope/
I was able to get *most* of the tests passing... and most importantly I got the benchmarks running. Basically I replaced the Buffer's internal string (lots of appends) with the "rope" library. Unfortunately, instead of a speed boost.... we are 2x slower. I might be doing something wrong in there though. Check out the code at http://svn.hamptoncatlin.com/haml/branches/ropey I'm going to run profiler on it and see what I can figure out. Anyone else want to make a stab? Hackers--- start your engines! -hampton. On 11/3/07, Hampton <[EMAIL PROTECTED]> wrote: > David- > > Yeah, we'd definitely be interested in learning more about that. > > Anything to make our baby faster! > > Have any good links on the subject? > > -hampton. > > On 11/3/07, David Richards <[EMAIL PROTECTED]> wrote: > > > > First, the disclaimer. I haven't used HAML or Sass in about 2 > > projects. It looks like you guys have done a lot to make things zippy > > in the last little while. > > > > Here's another 2 cents to add to the discussion. I'm at RubyConf > > right now, and the discussion on ropes really was interesting for this > > kind of problem. They were talking about Erb as a good place to apply > > ropes, for performance reasons. Is this something you'd be interested > > in applying? > > > > The basic idea is that a string can be stored as a tree internally. > > Operations like parsing, appending, finding, etc. are much faster with > > ropes than with strings. > > > > The Confreaks guys have captured RubyConf on video, so anyone should > > be able to see the whole ropes discussion soon. There were also some > > other base data types discussed in the room at the conference that > > could be useful. > > > > Anyway, this looks like it'd be a productive conversation to have. > > > > Cheers, > > > > David > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/haml?hl=en -~----------~----~----~----~------~----~------~--~---
