[Webkit-unassigned] [Bug 144483] New: Clean up: Remove unnecessary runtime computation of string length

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 30 18:27:37 PDT 2015


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

            Bug ID: 144483
           Summary: Clean up: Remove unnecessary runtime computation of
                    string length
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: dbates at webkit.org

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150501/6991ffca/attachment.html>


More information about the webkit-unassigned mailing list