mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 02:40:22 -10:00
Apply the following optimizations: - Don't use regular expressions where they can be avoided - Reduce unnecessary memory allocations (e.g. avoid doing a map and a filter by writing the code in an imperative fashion) - Reduce layout trashing by using `rAF` and `setTimeout` - Perform cheaper checks first in conditional statements See commit messages for more details. Differential Revision: https://phabricator.services.mozilla.com/D49214
Source Maps
This package contains DevTools utilities for working with source maps.
This is used in multiple contexts:
- The debugger loads this package directly when running from the launchpad in a tab by itself
- The toolbox inside Firefox loads this package and passes it down to interested tools so that they can share a common instance of the utilities
Application Requirements
This package assumes that an application using this code will make the
worker.js, and dwarf_to_json.wasm files available and call
startSourceMapWorker(workerURL, wasmRoot) to initialize the worker and specify
the location of the wasm asset.