Following <http://trac.webkit.org/changeset/183649>, WebCore::fullyQualifiedInfoTableName() computes the strlen() of a string literal as part of concatenating two string literals. Notice that the size of a string literal is known at compile time. It is sufficient to use sizeof() - 1 instead of strlen() to compute the string length of the string literal.
Created attachment 252127 [details] Patch
Comment on attachment 252127 [details] Patch r=me
Committed r183663: <http://trac.webkit.org/changeset/183663>
Comment on attachment 252127 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=252127&action=review > Source/WebCore/Modules/webdatabase/DatabaseBackendBase.cpp:100 > - strcpy(qualifiedName + strlen(qualifier), unqualifiedInfoTableName); > + strcpy(qualifiedName + sizeof(qualifier) - 1, unqualifiedInfoTableName); This change is unnecessary for clang or gcc since they already constant-fold this. So in practice this is a at most a Windows-only optimization.