Closed Bug 963735 Opened 11 years ago Closed 11 years ago

Switch from DFS -> BFS for finding GC paths

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla30

People

(Reporter: sfink, Assigned: sfink)

Details

Attachments

(1 file)

A depth first search produces long paths.
This patch drops the mean stack length from 9.1 entries to 3.3 entries (and drops the file size of gcFunctions.txt from 119MB to 46MB.)
Attachment #8365273 - Flags: review?(terrence)
Comment on attachment 8365273 [details] [diff] [review] Switch from DFS -> BFS for finding GC paths Review of attachment 8365273 [details] [diff] [review]: ----------------------------------------------------------------- What is this "Amdahl's Law" thing I keep hearing about? r=me
Attachment #8365273 - Flags: review?(terrence) → review+
> A depth first search produces long paths. This made my day. I'm a little amazed it wasn't much worse.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: