[Webkit-unassigned] [Bug 22001] Use AtomicString as the key for a HashMap and HashSet when necessary

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 31 10:07:22 PDT 2008


https://bugs.webkit.org/show_bug.cgi?id=22001





------- Comment #3 from darin at apple.com  2008-10-31 10:07 PDT -------
I'm not sure I agree with the title of this bug.

Sure, it'd be easier to program with a map and set that did a ref/deref on its
keys. But there are at least two other solutions to problems at any individual
call site:

    1) Add code to remove the string when it no longer should be in the
collection. That code can be run by the owner of the string.

    2) Add explicit ref/deref.

These are both possibly tricky to get right, and may be inferior solutions to
the problem. But I generally would prefer not to name bugs after a particular
solution to a problem.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list