Bug 20844

Summary: Speed up parseInt for numbers
Product: WebKit Reporter: Sam Weinig <sam>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   
Attachments:
Description Flags
patch zwarich: review+

Sam Weinig
Reported 2008-09-14 16:40:04 PDT
If the global function parseInt is used to convert a double to an int (as it seems is done in the function(p,a,c,k,e,d) code packer), it is inefficient to convert the value to a string and then back to an integer.
Attachments
patch (1.55 KB, patch)
2008-09-14 16:41 PDT, Sam Weinig
zwarich: review+
Sam Weinig
Comment 1 2008-09-14 16:41:50 PDT
Cameron Zwarich (cpst)
Comment 2 2008-09-14 16:44:07 PDT
Comment on attachment 23425 [details] patch r=me
Sam Weinig
Comment 3 2008-09-14 18:10:38 PDT
Fixed in r36410.
Note You need to log in before you can comment on or make changes to this bug.