mirror of
https://github.com/denoland/deno.git
synced 2024-10-29 08:58:01 -04:00
A modern runtime for JavaScript and TypeScript.
https://deno.com/
d9ff4eccb5
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. |
||
---|---|---|
.github | ||
cli | ||
core | ||
deno_typescript | ||
js | ||
prebuilt | ||
third_party@1cceee1f4e | ||
tools | ||
website | ||
.appveyor.yml | ||
.editorconfig | ||
.eslintignore | ||
.eslintrc.json | ||
.gitattributes | ||
.gitignore | ||
.gitmodules | ||
.prettierignore | ||
.prettierrc.json | ||
.rustfmt.toml | ||
.travis.yml | ||
Cargo.lock | ||
Cargo.toml | ||
CONTRIBUTING.md | ||
gclient_config.py | ||
LICENSE | ||
node_modules | ||
package.json | ||
README.md | ||
Releases.md | ||
tests | ||
tsconfig.json | ||
yarn.lock |
deno
A secure runtime for JavaScript and TypeScript built with V8, Rust, and Tokio.
Linux & Mac | Windows |
---|---|
Deno aims to provide a productive and secure scripting environment for the modern programmer. It is built on top of V8, Rust, and TypeScript.
Please read the introduction for more specifics.