1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00
denoland-deno/cli
David Sherret ecfafda9d8
perf: node cjs & esm analysis cache (#16097)
This commit adds a cache for CJS and ESM analysis that is backed by an
SQLite file.

The connection to the DB is lazily created on first use, so shouldn't
have impact on the startup time.

Benched with running Vite

Deno v1.26:
```
$ deno task dev
Warning deno task is unstable and may drastically change in the future
Task dev deno run -A --unstable --node-modules-dir npm:vite

  VITE v3.1.4  ready in 961 ms

  ➜  Local:   http://localhost:5173/
  ➜  Network: use --host to expose
```

This branch:
```
../deno/target/release/deno task dev
Warning deno task is unstable and may drastically change in the future
Task dev deno run -A --unstable --node-modules-dir npm:vite

  VITE v3.1.4  ready in 330 ms

  ➜  Local:   http://localhost:5173/
  ➜  Network: use --host to expose
```

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-10-01 12:15:56 +02:00
..
args refactor(cli): use shared sys kind parser in flags.rs (#16087) 2022-09-29 19:34:16 +09:00
bench feat(ext/flash): add reuseport option on Linux (#16022) 2022-09-28 23:16:29 +05:30
cache perf: node cjs & esm analysis cache (#16097) 2022-10-01 12:15:56 +02:00
dts chore: improve JSDoc for built-in APIs (#16048) 2022-09-28 22:21:08 +02:00
lsp feat: implement Web Cache API (#15829) 2022-09-28 17:41:12 +05:30
node perf: node cjs & esm analysis cache (#16097) 2022-10-01 12:15:56 +02:00
npm perf: node cjs & esm analysis cache (#16097) 2022-10-01 12:15:56 +02:00
ops feat(npm): functionality to support child_process.fork (#15891) 2022-09-28 13:04:16 -04:00
schemas chore(cli): update config file schema to include test config (#15246) 2022-07-19 15:10:41 -04:00
tests fix(ext/fetch): Body#bodyUsed for static body (#16080) 2022-09-29 17:38:04 +02:00
tools feat(lint): add --compact flag for terse output (#15926) 2022-09-28 18:47:48 +02:00
tsc feat(cli): update to TypeScript 4.8 (#15064) 2022-09-20 07:00:01 +10:00
auth_tokens.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
build.rs feat: implement Web Cache API (#15829) 2022-09-28 17:41:12 +05:30
Cargo.toml 1.26.0 2022-09-29 00:10:44 +02:00
cdp.rs docs: turn bare URLs into clickable links (#15347) 2022-07-30 12:20:29 +02:00
checksum.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
deno.ico fix(cli): add icon and metadata to deno.exe on Windows (#6693) 2020-07-15 21:54:38 +02:00
deno_dir.rs perf: node cjs & esm analysis cache (#16097) 2022-10-01 12:15:56 +02:00
deno_std.rs 1.26.0 2022-09-29 00:10:44 +02:00
diagnostics.rs feat: Stabilize Deno.hostname() API (#15932) 2022-09-28 15:36:06 +02:00
diff.rs refactor: update comment in diff.rs (#15142) 2022-07-10 22:49:18 -04:00
display.rs test(cli): add test cases (#16091) 2022-09-30 14:02:44 -04:00
emit.rs refactor: extract out check code from emit (#15729) 2022-09-02 10:54:40 -04:00
errors.rs chore: remove all pub(crate)s from the cli crate (#14083) 2022-03-23 09:54:22 -04:00
file_fetcher.rs feat(npm): add support for --reload=npm: and --reload=npm:<package> (#15972) 2022-09-22 10:39:58 -04:00
file_watcher.rs upgrade deps (#15914) 2022-09-16 19:11:30 -04:00
fs_util.rs feat(npm): add flag for creating and resolving npm packages to a local node_modules folder (#15971) 2022-09-22 11:17:02 -04:00
graph_util.rs BREAKING(unstable): remove --compat mode (#15678) 2022-09-03 18:19:30 +02:00
http_cache.rs chore(tests): use custom temp dir creation for the tests (#14153) 2022-04-01 11:15:37 -04:00
http_util.rs refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
lockfile.rs chore(tests): use custom temp dir creation for the tests (#14153) 2022-04-01 11:15:37 -04:00
logger.rs chore: remove all pub(crate)s from the cli crate (#14083) 2022-03-23 09:54:22 -04:00
main.rs feat: implement Web Cache API (#15829) 2022-09-28 17:41:12 +05:30
module_loader.rs perf: node cjs & esm analysis cache (#16097) 2022-10-01 12:15:56 +02:00
proc_state.rs perf: node cjs & esm analysis cache (#16097) 2022-10-01 12:15:56 +02:00
progress_bar.rs chore: use Rust 1.64.0 (#16035) 2022-09-26 21:52:16 +02:00
README.md Remove deno_typescript (#6813) 2020-07-20 19:49:57 -04:00
resolver.rs fix: resolve jsxImportSource relative to module (#15561) 2022-08-24 19:36:05 +02:00
standalone.rs feat: implement Web Cache API (#15829) 2022-09-28 17:41:12 +05:30
text_encoding.rs feat: emit files on demand and fix racy emit (#15220) 2022-07-19 11:58:18 -04:00
tsc.rs feat: implement Web Cache API (#15829) 2022-09-28 17:41:12 +05:30
unix_util.rs build: require safety comments on unsafe code (#13870) 2022-06-26 00:13:24 +02:00
version.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
windows_util.rs chore: fix Windows specific clippy errors (#15212) 2022-07-15 12:30:25 -04:00
worker.rs feat(npm): functionality to support child_process.fork (#15891) 2022-09-28 13:04:16 -04:00

Deno CLI Crate

crates docs

This provides the actual deno executable and the user-facing APIs.

The deno crate uses the deno_core to provide the executable.