Closed Bug 1925051 Opened 1 year ago Closed 1 year ago

Avoid Mutex overhead when checking DateTime cached UTC-to-local offset

Categories

(Core :: JavaScript: Standard Library, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
133 Branch
Tracking Status
firefox133 --- fixed

People

(Reporter: anba, Assigned: anba)

Details

Attachments

(1 file)

Date.prototype.get{FullYears,Month,Date,Hours,Minutes,Seconds} spend almost half their execution time in acquiring the DateTimeInfo::instance mutex.

This reduces the time needed to call get{FullYears,Month,Date,Hours,Minutes,Seconds}
by 40-45%.

Pushed by andre.bargull@gmail.com: https://hg.mozilla.org/integration/autoland/rev/ba249529f7cc Cache utc-to-local offset in Atomic to avoid mutex overhead. r=jandem
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: