1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-02 17:01:14 -05:00
denoland-deno/cli
Kitson Kelly d9ff4eccb5 Async compiler processing (#3043)
Basically this does pre-processing of TypeScript files and gathers all the
dependencies asynchronously. Only then after all the dependencies are gathered,
does it do a compile, which at that point all the dependencies are cached in
memory in the compiler, so with the exception of the hard coded assets, there
are no ops during the compilation.

Because op_fetch_source_files is now handled asynchronously in the runtime, we
can eliminate the tokio_util::block_on() which was causing the increase in
threads. Benchmarking on my machine has shown about a 5% improvement in speed
when dealing with compiling TypeScript. Still a long way to go, but an
improvement.

In theory the module name resolution and the fetching of the source files could
be broken out as two different ops. This would prevent situations of sending the
full source file all the time when actually the module is the same module
referenced by multiple modules, but that could be done subsequently to this.
2019-10-03 07:23:29 -04:00
..
compilers Fix handling of config file (#2996) 2019-09-20 10:19:51 -04:00
ops Async compiler processing (#3043) 2019-10-03 07:23:29 -04:00
tests Async compiler processing (#3043) 2019-10-03 07:23:29 -04:00
Cargo.toml Add Deno.hostname() (#3032) 2019-09-27 19:09:42 -04:00
colors.rs Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
deno_dir.rs refactor: cleanup compiler pipeline (#2686) 2019-07-31 13:16:03 -04:00
deno_error.rs feat: Add support for passing a key to Deno.env() (#2952) 2019-10-02 11:55:28 -04:00
diagnostics.rs Update to TypeScript 3.6.3 (#2969) 2019-09-17 12:24:44 -04:00
disk_cache.rs fix: cache paths on Windows are broken (#2760) 2019-08-12 01:12:09 +02:00
file_fetcher.rs feat: JSX Support (#3038) 2019-10-02 10:46:36 -04:00
flags.rs bump deno_std deps (#3034) 2019-09-28 15:14:49 -04:00
fmt_errors.rs Rename ansi.rs to colors.rs (#2956) 2019-09-15 14:48:25 -04:00
fs.rs Don't test resolve_from_cwd_absolute() on Windows (#2911) 2019-09-10 20:16:30 -07:00
global_timer.rs Fix clippy errors and upgrade Rust to 1.33.0 in CI (#1945) 2019-03-20 18:55:52 -04:00
http_body.rs Use 'reqwest' to implement HTTP client (#2822) 2019-08-30 14:49:03 -07:00
http_util.rs Remove test.py, use cargo test as test frontend (#2967) 2019-09-19 14:48:05 -04:00
import_map.rs Fix import map panics, use import map's location as its base URL (#2770) 2019-08-15 13:58:04 -04:00
lib.rs feat: window.onunload (#3023) 2019-10-02 11:32:51 -04:00
main.rs Move integration tests to //cli/tests/ (#2964) 2019-09-16 21:05:14 -04:00
msg.rs feat: JSX Support (#3038) 2019-10-02 10:46:36 -04:00
permissions.rs Dynamic import should respect permissions (#2764) 2019-08-13 14:51:15 -04:00
progress.rs Port code from Cargo and use for progress 2019-06-25 06:32:28 -07:00
repl.rs Fix repl crash when deno dir doesn't exist (#2727) 2019-08-08 07:25:39 -04:00
resolve_addr.rs Refactor error to use dynamic dispatch and traits 2019-07-11 14:37:00 -04:00
resources.rs feat: Add Deno.dialTLS() 2019-09-23 15:12:42 -04:00
shell.rs Use system rustfmt instead of fixed binary (#2701) 2019-07-31 17:11:37 -04:00
signal.rs Refactor error to use dynamic dispatch and traits 2019-07-11 14:37:00 -04:00
source_maps.rs Utilise internal names for snapshot bundles (#2973) 2019-09-18 19:56:13 -04:00
startup_data.rs Refactor snapshot build (#2825) 2019-09-02 17:07:11 -04:00
state.rs feat: JSX Support (#3038) 2019-10-02 10:46:36 -04:00
test_util.rs Remove test.py, use cargo test as test frontend (#2967) 2019-09-19 14:48:05 -04:00
tokio_read.rs fix: replace bad rid panics with errors (#2870) 2019-09-10 00:59:40 -04:00
tokio_util.rs fix: panicking when can't create runtime for block_on (#2905) 2019-09-11 20:10:14 -04:00
tokio_write.rs fix: replace bad rid panics with errors (#2870) 2019-09-10 00:59:40 -04:00
version.rs Make deno_cli installable via crates.io (#2946) 2019-09-15 18:36:27 -04:00
worker.rs feat: Add support for passing a key to Deno.env() (#2952) 2019-10-02 11:55:28 -04:00