Closed Bug 888613 Opened 12 years ago Closed 12 years ago

Micro-optimization of js::ToInteger

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla25

People

(Reporter: till, Assigned: till)

Details

Attachments

(2 files, 1 obsolete file)

No description provided.
Attached file micro-benchmark (obsolete) —
Attachment #769362 - Attachment is obsolete: true
Comment on attachment 769361 [details] [diff] [review] Micro-optimization of js::ToInteger Stumbled upon this. The attached micro-benchmark gets a speedup of ~9%. While I doubt that that makes a difference in any benchmarks we care about, simplifying code and getting rid of two branches can't be wrong. Right?
Attachment #769361 - Flags: review?(jwalden+bmo)
Attachment #769361 - Flags: review?(jwalden+bmo) → review+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: