A magical optimization for the += operator with strings

This post has moved to my new location, philosopherdeveloper.com:

http://philosopherdeveloper.com/posts/magical-optimization-of-the-%2B%3D-operator-with-strings.html

Advertisements

2 thoughts on “A magical optimization for the += operator with strings

  1. svick says:

    Chrome (or at least parts of it) is open source. Couldn’t you just look at the source code? Granted, looking for something like this in a big, unknown codebase will most likely take some time, but it still may be worth it.

    • Daniel says:

      No, that’s definitely true. I guess my intention originally wasn’t really to know how Chrome did it; rather, I viewed it as an interesting challenge to try myself, and only afterwards looking back do I wonder, “How *did* they do it, actually?” That said, you’re right that it’s a really big code base; so finding the += optimization would probably be a pretty significant research endeavor in its own right. But that’s a good idea for a follow-up post!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: