Closed
Bug 767238
Opened 13 years ago
Closed 9 months ago
[meta] Make Emscripten-generated code as fast as possible
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
People
(Reporter: dmandelin, Unassigned)
References
(Depends on 1 open bug)
Details
(Keywords: meta, Whiteboard: [js:t])
This is a metabug for maximizing Emscripten performance. There are two dimensions:
- throughput: compile it to something that's as close as we can (staying safe) to what a C compiler would have done on the original code
- startup: minimize startup latency, which includes both time before we run any code at all, and time until we're running smoothly (we can be compiling and running at the same time)
![]() |
||
Updated•13 years ago
|
Blocks: gecko-games
Updated•13 years ago
|
Whiteboard: [js:t] → [js:t][games:p1]
Alon, Luke, given that we're moving to Asm.js for emscripten perf, do the bugs here actually still apply?
Comment 2•12 years ago
|
||
I don't think we are moving to asm.js whole hog. First, asm.js is a research project, and second, it will possibly never support all the compiled code we can generate (e.g., we have various JS tricks for things like longjmp, C++ exceptions, and it is not clear yet how asm would handle them). Also, optimizing for emscripten-type code will help other compilers that are not asm.
So I think the bugs here definitely do still apply. I would agree they are slightly less of a priority though.
![]() |
||
Comment 3•12 years ago
|
||
It still makes sense to optimize the patterns in a general non-asm.js scenario. That is, from a non-asm.js perspective, Emscripten mostly just generates a bunch of independently highly-optimizable patterns.
![]() |
||
Comment 4•12 years ago
|
||
Whoa, Alon already beat me.
![]() |
||
Comment 5•12 years ago
|
||
I would like to point out, re: comment 2, that we may eventually add support to asm.js for exception handling (that is, via a restricted patterned use of try/catch).
Fixed by asm.js, so not a games priority any more; JS guys should probably go through the dependent bugs and see if they're still relevant.
Whiteboard: [js:t][games:p1] → [js:t]
No longer blocks: gecko-games
Assignee | ||
Updated•11 years ago
|
Assignee: general → nobody
Updated•2 years ago
|
Severity: normal → S3
Updated•9 months ago
|
Status: NEW → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•