[webkit-dev] When should I use AtomicString vs String?

Filip Pizlo fpizlo at apple.com
Fri Jun 7 09:46:35 PDT 2013



Sent from my PDP-11

On Jun 7, 2013, at 6:18 AM, Simon Fraser <simon.fraser at apple.com> wrote:

> Based on the fact that AtomicString is really a singleton string, I’d like to suggest a new name for this class:
> 
> Stringleton

+1

> 
> Simon
> 
> On Jun 3, 2013, at 3:37 PM, Brendan Long <self at brendanlong.com> wrote:
> 
>> On 06/01/2013 10:09 PM, Glenn Adams wrote:
>>> But the name did throw me, since I asked myself "what makes this more 'atomic' than String, synchronicity wise"? I'm sure I'm not the only one who wondered about this.
>> Before asking this question I had assumed AtomicString was an atomic type (as in, safe to use in multi-threaded code). InternedString would have been more obvious, but the biggest problem was that searching for "WebKit AtomicString" didn't return any results that explained what it was. Now the top hit has an explanation, so it's not a big deal.
> 
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> https://lists.webkit.org/mailman/listinfo/webkit-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20130607/b85e6220/attachment.html>


More information about the webkit-dev mailing list