[Webkit-unassigned] [Bug 14000] New: Bitwise operations in Javascript core are painfully slow

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 5 09:24:30 PDT 2007


http://bugs.webkit.org/show_bug.cgi?id=14000

           Summary: Bitwise operations in Javascript core are painfully slow
           Product: WebKit
           Version: 419.x
          Platform: Macintosh
               URL: http://anandam.name/pbkdf2/
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: francois.proulx at gmail.com


I was trying this javascript implementation of RFC2928 (Password based key
derivation function 2) http://anandam.name/pbkdf2/ . It heavily uses this SHA1
implementation (http://pajhome.org.uk/crypt/md5/sha1src.html). Suffices to say
that it relies heavily on bitwise ops. Firefox performed the PBKDF about more
than 10 times faster than Safari. On #webkit, someone said: "I think the core
difference is that we always store numbers as floating point, which means bit
operations have to go from float -> int32 -> float". So that might be the main
reason why the code runs slowly...


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list