1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00
denoland-deno/cli
Matt Mastracci 86c3c4f343
feat(core): initialize SQLite off-main-thread (#18401)
This gets SQLite off the flamegraph and reduces initialization time by
somewhere between 0.2ms and 0.5ms. In addition, I took the opportunity
to move all the cache management code to a single place and reduce
duplication. While the PR has a net gain of lines, much of that is just
being a bit more deliberate with how we're recovering from errors.

The existing caches had various policies for dealing with cache
corruption, so I've unified them and tried to isolate the decisions we
make for recovery in a single place (see `open_connection` in
`CacheDB`). The policy I chose was:

 1. Retry twice to open on-disk caches
 2. If that fails, try to delete the file and recreate it on-disk
3. If we fail to delete the file or re-create a new cache, use a
fallback strategy that can be chosen per-cache: InMemory (temporary
cache for the process run), BlackHole (ignore writes, return empty
reads), or Error (fail on every operation).

The caches all use the same general code now, and share the cache
failure recovery policy.

In addition, it cleans up a TODO in the `NodeAnalysisCache`.
2023-03-27 22:01:52 +00:00
..
args refactor(cli): remove Lazy<String> and fix help outputs (#18462) 2023-03-27 18:28:41 +02:00
bench fix(cli/bench): look for clone3 syscalls for thread count (#18456) 2023-03-27 14:45:00 +00:00
cache feat(core): initialize SQLite off-main-thread (#18401) 2023-03-27 22:01:52 +00:00
js feat(test): print pending tests on sigint (#18246) 2023-03-25 21:32:11 +02:00
lsp feat(test): print pending tests on sigint (#18246) 2023-03-25 21:32:11 +02:00
napi chore: forward v1.32.1 release commit to main (#18399) 2023-03-23 22:55:23 +01:00
node feat(core): initialize SQLite off-main-thread (#18401) 2023-03-27 22:01:52 +00:00
npm feat: TypeScript 5.0.2 (except decorators) (#18294) 2023-03-21 15:46:40 +00:00
ops Reland "perf(core): preserve ops between snapshots (#18080)" (#18272) 2023-03-18 18:30:04 -04:00
schemas feat: embed import map in the config file (#17478) 2023-01-25 21:13:40 +01:00
tests feat(core): initialize SQLite off-main-thread (#18401) 2023-03-27 22:01:52 +00:00
tools feat(core): initialize SQLite off-main-thread (#18401) 2023-03-27 22:01:52 +00:00
tsc chore(ext/kv): add limits (#18415) 2023-03-25 15:29:36 +08:00
util perf(core) Reduce script name and script code copies (#18298) 2023-03-21 22:33:12 +00:00
auth_tokens.rs chore: upgrade to Rust 1.67 (#17548) 2023-01-27 10:43:16 -05:00
build.rs refactor: make version and user_agent &'static str (#18400) 2023-03-23 23:27:58 +01:00
Cargo.toml chore: upgrade clap to v4 (#17333) 2023-03-26 06:06:18 +02:00
deno.ico
deno_std.rs refactor(init): remove CURRENT_STD_URL (#18375) 2023-03-23 03:11:18 +00:00
emit.rs perf(core) Reduce script name and script code copies (#18298) 2023-03-21 22:33:12 +00:00
errors.rs feat: TypeScript 5.0.2 (except decorators) (#18294) 2023-03-21 15:46:40 +00:00
file_fetcher.rs fix(cli): don't store blob and data urls in the module cache (#18261) 2023-03-26 12:24:10 +03:00
graph_util.rs feat(core): initialize SQLite off-main-thread (#18401) 2023-03-27 22:01:52 +00:00
http_util.rs refactor: remove usages of map_or / map_or_else (#18212) 2023-03-15 17:46:36 -04:00
js.rs perf: disable runtime snapshot compression (#18239) 2023-03-17 08:49:46 +05:30
main.rs chore: upgrade clap to v4 (#17333) 2023-03-26 06:06:18 +02:00
module_loader.rs perf(core) Reduce script name and script code copies (#18298) 2023-03-21 22:33:12 +00:00
proc_state.rs feat(core): initialize SQLite off-main-thread (#18401) 2023-03-27 22:01:52 +00:00
README.md docs(cli): do not need gen doc for cli (#17260) 2023-01-04 13:19:58 +01:00
resolver.rs refactor: remove Semaphore::new(1) and use TaskQueue (#18014) 2023-03-04 20:07:11 -05:00
standalone.rs refactor: make version and user_agent &'static str (#18400) 2023-03-23 23:27:58 +01:00
version.rs refactor: make version and user_agent &'static str (#18400) 2023-03-23 23:27:58 +01:00
worker.rs refactor: use default implementation of BootstrapOptions (#18439) 2023-03-26 04:38:45 +00:00

Deno CLI Crate

crates

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

The deno crate uses the deno_core to provide the executable.