react-native/packager/react-packager/src
David Aurelio 7ca5316562 High-perf source map builder
Summary:
Adds a high performance source map builder that has certain restrictions compared to the `'source-map'` package:

- mappings have to be in the order of the generated source
- source files have to be started/ended separately on the generator. That means building up mappings is optimized for blocks of mappings that all belong to the same source file (or no file)

The implementation avoids allocation of complex value, i.e. strings and objects as much as possible by preallocating a buffer and using numeric character values throughout. The buffer is converted to a string only at the end.

This implementation is ~5✕ faster than using `'source-map'`.

Reviewed By: jeanlauliac

Differential Revision: D4392260

fbshipit-source-id: 406381302d951b919243a2b15e8bb75981e9f979
2017-01-09 11:43:28 -08:00
..
AssetServer New file watching implementation 2016-11-16 20:13:26 -08:00
Bundler High-perf source map builder 2017-01-09 11:43:28 -08:00
Cache/__mocks__ Move Cache into DependencyGraph 2015-12-18 16:17:42 -08:00
JSTransformer packager: remove validateOpts for Bundler class 2017-01-06 06:13:54 -08:00
Logger packager: make output simpler, more legible 2016-12-19 10:58:32 -08:00
ModuleGraph packager: enable @flow in node-haste types.js 2017-01-04 05:28:42 -08:00
Resolver packager: Fix typing of more Resolver options 2016-12-21 03:43:36 -08:00
Server packager: remove validateOpts for Bundler class 2017-01-06 06:13:54 -08:00
__mocks__ Remove fastpath 2016-10-20 00:14:03 -07:00
lib packager: socket timeout for global cache 2017-01-09 11:13:32 -08:00
node-haste Revamp debug logging 2017-01-04 07:13:32 -08:00