Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 8684113: Improved patterns.ini reading to be more memory-efficient (Closed)

Created:
Oct. 30, 2012, 2:51 p.m. by Wladimir Palant
Modified:
Nov. 1, 2012, 7:54 a.m.
Reviewers:
Felix Dahlke
Visibility:
Public.

Description

It seems that string concatenation makes Gecko allocate more memory than necessary to hold the string. Using XMLHttpRequest with moz-chunked-text response type (introduced in Gecko 9) looks like a good way to get implicit string conversion - meaning no more string concatenations. No measurable effect on startup times unfortunately.

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -65 lines) Patch
M lib/io.js View 1 chunk +57 lines, -61 lines 1 comment Download
M metadata View 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 4
Wladimir Palant
Oct. 30, 2012, 2:51 p.m. (2012-10-30 14:51:44 UTC) #1
Felix Dahlke
LGTM other than that nit. And assuming the metadata changes are unrelated. http://codereview.adblockplus.org/8684113/diff/1/lib/io.js File lib/io.js ...
Oct. 30, 2012, 5:40 p.m. (2012-10-30 17:40:06 UTC) #2
Wladimir Palant
The metadata changes are very much related - moz-chunked-text requires Gecko 9 whereas we were ...
Oct. 30, 2012, 6:50 p.m. (2012-10-30 18:50:28 UTC) #3
Felix Dahlke
Oct. 30, 2012, 7:39 p.m. (2012-10-30 19:39:34 UTC) #4
On 2012/10/30 18:50:28, Wladimir Palant wrote:
> The metadata changes are very much related - moz-chunked-text requires Gecko 9
> whereas we were compatible with Gecko 8 before.

Oh. LGTM anyway :)

Powered by Google App Engine
This is Rietveld