In TextureMapperGL, we often need to check if a key is present in the hash table: - if it is return the associated value, - if it is not create the value, add it to the hash table and return it. We currently use Vector::find() to check if it exists, and then Vector::set() to add the value to the hash table if it doesn't. This results in 2 hash lookups. We could leverage the AddResult return value of Vector::add() to do the same thing with a single hash lookup.
Created attachment 196623 [details] Patch
Comment on attachment 196623 [details] Patch Seems a bit like a micro-optimization, as those cases only happen the first time you use a particular shader/vbo. But OK :)
Comment on attachment 196623 [details] Patch Clearing flags on attachment: 196623 Committed r147742: <http://trac.webkit.org/changeset/147742>
All reviewed patches have been landed. Closing bug.