Skip to content
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.

Performance bug with newline replacement on IE 6-7 (patch included) #102

Closed
GoogleCodeExporter opened this issue Apr 22, 2015 · 3 comments
Closed

Comments

@GoogleCodeExporter
Copy link

I noticed that on extremely large files - say, 3000 lines of code inside a 
single <code> tag - IE 6 and 7 spend the vast majority of rendering time 
replacing <br>s with \r\n after the rest of the markup has occurred. By 
choosing the appropriate newline style inside recombineTagsAndDecoration, we 
can eliminate the replacement step at the end.

I've attached a patch that implements this. On the aforementioned 3kloc test 
file, it reduces IE7 rendering time on my computer from 40s to 10s, with 
similar results for IE6.

Original issue reported on code.google.com by jacobly@google.com on 10 Dec 2009 at 7:52

Attachments:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants