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

NEW
Unassigned

Status

P4
normal
4 years ago
8 months ago

People

(Reporter: ejpbruel, Unassigned)

Tracking

(Blocks: 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

4 years ago
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.
(Reporter)

Updated

4 years ago
Blocks: 771597
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)

Comment 3

11 months ago
(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)

Updated

8 months ago
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.