Skip to content

Commit

Permalink
Fixes issue getify#1435 Added a note about WebAssembly
Browse files Browse the repository at this point in the history
  • Loading branch information
yozaam committed Mar 15, 2019
1 parent fe3ea17 commit e552173
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions async & performance/ch5.md
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,8 @@ The first call to `fooASM(..)` is what sets up our asm.js module with its `heap`

Obviously, the nature of restrictions that make asm.js code so optimizable reduces the possible uses for such code significantly. asm.js won't necessarily be a general optimization set for any given JS program. Instead, it's intended to provide an optimized way of handling specialized tasks such as intensive math operations (e.g., those used in graphics processing for games).

**Note** We now have developed WebAssembly (wasm) from asm.js, which allows us to bring the native performance to the web in a more secure way, developers just need to compile C/C++ code to the web which allows for incredible tasks to be performed in the browser that were not possible previously

## Review

The first four chapters of this book are based on the premise that async coding patterns give you the ability to write more performant code, which is generally a very important improvement. But async behavior only gets you so far, because it's still fundamentally bound to a single event loop thread.
Expand Down

0 comments on commit e552173

Please sign in to comment.