Closed Bug 534797 Opened 15 years ago Closed 10 years ago

nanojit: avoid quadratic complexity in arReserve()

Categories

(Core Graveyard :: Nanojit, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED WONTFIX
Future

People

(Reporter: n.nethercote, Assigned: gal)

References

Details

(Whiteboard: PACMAN)

Attachments

(1 file)

arReserve() uses a really stupid quadratic algorithm for allocating chunks larger than 8 bytes.  It should use something smarter.
Severity: normal → minor
OS: Mac OS X → All
Hardware: x86 → All
Whiteboard: PACMAN
Target Milestone: --- → Future
Depends on: 584608
A simple proposal for removing the isEmptyRange usage in AR::reserveEntry, using the where an non-empty slot is found to calculate how far to shift the search window.  No changes outside of AR::reserveEntry needed, perf results look reasonable.
Product: Core → Core Graveyard
Nanojit has been dead for several years. Its Bugzilla component has been moved to the graveyard (bug 984276).

I checked all the open bugs. They're all uninteresting, so I'm WONTFIXing them all. Apologies for the bugspam.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: