[Webkit-unassigned] [Bug 144263] New: Streaming bytes of source code to SHA1 to calculate CodeBlockHash

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 27 10:07:01 PDT 2015


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

            Bug ID: 144263
           Summary: Streaming bytes of source code to SHA1 to calculate
                    CodeBlockHash
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: utatane.tea at gmail.com

Currently, CodeBlockHash once converts the entire source code string to the UTF-8 string and pass it to SHA1 to calculate the hash value.
However, it's memory consuming because this process allocates a large buffer to store the entire UTF-8 string.
Instead of the current process (alloc, convert, and use), we should implement the streaming decoder decoding UTF-16 into UTF-8 and stream the bytes into SHA1 iteratively.

-- 
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/20150427/6cc02e30/attachment.html>


More information about the webkit-unassigned mailing list