[Webkit-unassigned] [Bug 185922] New: date-format-xparb spends an awful lot of time doing fmod inside JSC::msToGregorianDateTime

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 23 14:18:31 PDT 2018


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

            Bug ID: 185922
           Summary: date-format-xparb spends an awful lot of time doing
                    fmod inside JSC::msToGregorianDateTime
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: fpizlo at apple.com

It seems like the repeat fmod calls could be avoided if we did all of the to-seconds/to-minutes/to-hours conversions as part of one inlined math formula.  For example, if we extract the hours component as a double, and then floor it, then we could extract the minutes without having to do an fmod: we'd just extract the fractional part dropped by the floor and multiply by 60.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180523/1bdabe39/attachment.html>


More information about the webkit-unassigned mailing list