The insertion and removal of the escapes aren't really redundant - 
they're a way to avoid Haml indenting your pres. It's not a lot 
different than adding and removing comments for the same purpose.

- Nathan

Wincent Colaiuta wrote:
> On 10 feb, 07:31, Nathan Weizenbaum <[EMAIL PROTECTED]> wrote:
>   
>> This seems like a lot of extra work for a relatively minor issue, and it
>> might significantly affect performance - code needs to be really tight
>> when dealing with the buffer stuff. I really think the best way to deal
>> with this is to monkeypatch a post-processor into #render.
>>     
>
> I've never done that before but I'll look into it.
>
> Still, a bit of a shame. I've gone into a lot of effort to make the
> wikitext-to-HTML translator very fast and produce very nicely
> formatted output. I haven't finished optimizing it yet but it's
> currently capable of translating about 10 megabytes of wikitext markup
> per second on my lowly 1.83 MHz Core Duo iMac. So it's a bit of a
> shame to see that effort counteracted by two essentially redundant
> additional phases (one to insert the newline escapes and another to
> remove them), but if it's the way it has to be, then I guess it's the
> way it has to be!
>
> Cheers,
> Wincent
>
> >
>
>   


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to