Open Bug 906283 Opened 12 years ago Updated 3 years ago

PREF_RegisterCallback / PREF_UnregisterCallback should use a hashtable rather than linked list

Categories

(Core :: Preferences: Backend, defect)

defect

Tracking

()

People

(Reporter: dbaron, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: perf)

PREF_UnregisterCallback traverses a linked list in order to unregister a pref callback. When many callbacks are present this can take significant time; see for example the data at the end of bug 906269 comment 0. This performance problem has been discussed previously in bug 561076, bug 577950, and bug 664653. There may be further thoughts in those bugs on design changes that need to be made.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.