Closed Bug 499121 Opened 17 years ago Closed 17 years ago

Cache user objects for Bug::GetComments

Categories

(Bugzilla :: Creating/Changing Bugs, defect)

3.3.4
defect
Not set
minor

Tracking

()

RESOLVED FIXED
Bugzilla 3.4

People

(Reporter: bbaetz, Assigned: bbaetz)

Details

(Keywords: perf)

Attachments

(1 file)

Attached patch PatchSplinter Review
In practice the same people tend to comment more than once on a bug. We should cache reuse the user object (Ideally these would all be singletons, but.....) For a bug with 57 comments, all by the same user, this moves from 1.07s=>970ms For 3 comments by two users, 274ms->263ms Would like this for 3.4 too.
Attachment #383907 - Flags: review?(mkanat)
Assignee: create-and-change → bbaetz
Version: 3.5 → 3.3.4
The gain is pretty small.
Severity: normal → minor
Attachment #383907 - Flags: review?(mkanat) → review+
Flags: approval3.4+
Flags: approval+
Target Milestone: --- → Bugzilla 3.4
Checking in Bugzilla/Bug.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Bug.pm,v <-- Bug.pm new revision: 1.279; previous revision: 1.278 done Checking in Bugzilla/Bug.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Bug.pm,v <-- Bug.pm new revision: 1.276.2.3; previous revision: 1.276.2.2 done
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: