Closed Bug 1134566 Opened 10 years ago Closed 5 years ago

Improve the performance of the source-map library by rewriting parts of it in asm.js.

Categories

(DevTools :: Debugger, defect, P4)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ejpbruel, Unassigned)

References

(Blocks 1 open bug)

Details

Parsing source maps is a significant performance bottleneck for the devtools. The parser implementation is written in JS and is already optimized to the point where we don't expect to get any big wins there. The only way to get better performance at this point would be to rewrite the parser in either C++ or asm.js. Since the source-map library is used by people outside of Mozilla as well, asm.js seems the best option here.
Rust is the new hotness. https://github.com/tromey/vlq Though it seems to me that this is less important now that the decoding is done in a worker. Marking it P4, the forgotten P.
Priority: -- → P4
Tom, didn't this happen?
Flags: needinfo?(ttromey)
(In reply to :Harald Kirschner :digitarald from comment #2) > Tom, didn't this happen? Yes, but it hasn't landed in devtools-core yet (https://github.com/devtools-html/devtools-core/pull/995) or been landed in M-C yet (note that M-C has two copies of the source map library).
Flags: needinfo?(ttromey)
Product: Firefox → DevTools

The sourcemap library uses wasm now.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.