[Webkit-unassigned] [Bug 15853] date-format-xparb spends 5% of TOTAL TIME in notify_check
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Nov 7 23:11:29 PST 2007
http://bugs.webkit.org/show_bug.cgi?id=15853
------- Comment #4 from eric at webkit.org 2007-11-07 23:11 PDT -------
The code looks something like this:
void timezoneChangedSigHandler()
{
gTimeZoneNotifies++;
}
void doSomethingNeedingTheTimeZone()
{
// current code would notify_check, instead we...
if (gTimeZoneNotifies != gLastCachedNotify) {
gLastCachedNotify = gTimeZoneNotifies;
gTimeZone = // do the localtime_r dance to get the timezone
}
// use the timezone
}
I think that's safe... but it's also 11pm and I got a whole 2 hours of sleep
last night or something... so it's possible I missed something obvious.
--
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