deno/cli/cache
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
..
check.rs feat: emit files on demand and fix racy emit (#15220) 2022-07-19 11:58:18 -04:00
common.rs fix: upgrade deno_ast to 0.19 (#15808) 2022-09-07 15:06:18 -04:00
disk_cache.rs feat: emit files on demand and fix racy emit (#15220) 2022-07-19 11:58:18 -04:00
emit.rs refactor(emit/cache): move cli version into emit hash (#15348) 2022-07-30 12:09:12 -04:00
incremental.rs feat: emit files on demand and fix racy emit (#15220) 2022-07-19 11:58:18 -04:00
mod.rs perf: node cjs & esm analysis cache (#16097) 2022-10-01 12:15:56 +02:00
node.rs perf: node cjs & esm analysis cache (#16097) 2022-10-01 12:15:56 +02:00
parsed_source.rs fix(compile): panic when running with a populated dep analysis cache (#15672) 2022-08-29 14:24:10 -04:00