Closed Bug 407526 Opened 17 years ago Closed 16 years ago

Optimize cell properties getter for user list

Categories

(Other Applications :: ChatZilla, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Gijs, Assigned: Gijs)

References

Details

(Whiteboard: [cz-0.9.84])

Attachments

(1 file)

3.84 KB, patch
bugzilla-mozilla-20000923
: review+
Details | Diff | Splinter Review
Silver: (bug 315913 comment 11)

I wonder how much the atom service costs us here... might be worth a followup
patch/bug to check a) how often getCellProperties is called, and b) whether
caching all the atoms in a JS object helps significantly over getAtom (it
should avoid the costly XPC transition, at least).

Neil: (bug 315913 comment 12)
Basically, on every paint or hit-test of a cell.



It would rock if someone could profile this. I'm not likely to have time for that soon, and the current speed is pretty darn good for me (certainly better than the RDF view we used to have), but if we can get even better, we definitely should.
Attached patch PatchSplinter Review
Patch to cache atoms. We don't really need to set client.atomSvc now, and not doing it probably helps in never leaking crap. So I figured that'd be a bright idea. :-)

http://spreadsheets.google.com/pub?key=pA2pwiKbiGdGnxkdPUUshTg
Has some profiling data. This should get us at least a 30% speed gain, apparently, at a minimal cost (<1ms startup time).
Assignee: rginda → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Attachment #339860 - Flags: review?(silver)
Attachment #339860 - Flags: review?(silver) → review+
Checking in mozilla/extensions/irc/xul/content/static.js;
/cvsroot/mozilla/extensions/irc/xul/content/static.js,v  <--  static.js
new revision: 1.286; previous revision: 1.285
done
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Whiteboard: [cz-0.9.84]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: