[Webkit-unassigned] [Bug 16583] New: Speedup date code (msToGregorianDateTime) by only handling positive values

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Dec 23 01:52:29 PST 2007


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

           Summary: Speedup date code (msToGregorianDateTime) by only
                    handling positive values
           Product: WebKit
           Version: 525+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: eric at webkit.org


Speedup date code (msToGregorianDateTime) by only handling positive values

msToGregorianDateTime and the associated static inline support functions are
slow due to needing to handle negative values for ms.  Instead we should detect
that ms is negative, flip the sign, send it through normal processing and then
flip the signs on the resulting GregorianDateTime.  This would add a branch,
but would greatly speed up date processing due to the removal of all of the
floor() calls.


-- 
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