1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-03 17:08:35 -05:00
denoland-deno/cli/ops
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
..
compiler.rs Async compiler processing (#3043) 2019-10-03 07:23:29 -04:00
dispatch_json.rs use Isolate::register_op in deno_cli (#3039) 2019-10-01 18:51:05 -04:00
dispatch_minimal.rs use Isolate::register_op in deno_cli (#3039) 2019-10-01 18:51:05 -04:00
errors.rs bring back json ops (#2815) 2019-08-26 08:50:21 -04:00
fetch.rs ops/fetch: add statusText (#2851) 2019-09-02 12:30:14 -04:00
files.rs fix: replace bad rid panics with errors (#2870) 2019-09-10 00:59:40 -04:00
fs.rs port fs ops to JSON (#2812) 2019-08-26 10:18:42 -04:00
io.rs fix: replace bad rid panics with errors (#2870) 2019-09-10 00:59:40 -04:00
metrics.rs bring back json ops (#2815) 2019-08-26 08:50:21 -04:00
mod.rs use Isolate::register_op in deno_cli (#3039) 2019-10-01 18:51:05 -04:00
net.rs dial/listen API change (#3000) 2019-09-20 18:32:18 -04:00
os.rs feat: Add support for passing a key to Deno.env() (#2952) 2019-10-02 11:55:28 -04:00
performance.rs bring back json ops (#2815) 2019-08-26 08:50:21 -04:00
permissions.rs bring back json ops (#2815) 2019-08-26 08:50:21 -04:00
process.rs bring back json ops (#2815) 2019-08-26 08:50:21 -04:00
random.rs bring back json ops (#2815) 2019-08-26 08:50:21 -04:00
repl.rs bring back json ops (#2815) 2019-08-26 08:50:21 -04:00
resources.rs bring back json ops (#2815) 2019-08-26 08:50:21 -04:00
timers.rs js: reschedule global timer if it fires earlier than expected (#2989) 2019-09-20 19:00:12 +02:00
tls.rs feat: Add Deno.dialTLS() 2019-09-23 15:12:42 -04:00
workers.rs Handle uncaught worker errors without panicking (#3019) 2019-09-25 10:46:58 -04:00