summaryrefslogtreecommitdiff
path: root/core/lib.deno_core.d.ts
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2023-04-30 10:50:24 +0200
committerGitHub <noreply@github.com>2023-04-30 08:50:24 +0000
commitbb1f5e4262940a966e6314f57a4267514911d262 (patch)
tree0b5b870e34fca10daf8e664eb4214e5e756daf53 /core/lib.deno_core.d.ts
parent9c8ebce3dcc784f1a6ecd29d5fe0b3d35256ab82 (diff)
perf(core): async op pseudo-codegen and performance work (#18887)
Performance: ``` async_ops.js: 760k -> 1030k (!) async_ops_deferred.js: 730k -> 770k Deno.serve bench: 118k -> 124k WS test w/ third_party/prebuilt/mac/load_test 100 localhost 8000 0 0: unchanged Startup time: approx 0.5ms slower (13.7 -> 14.2ms) ```
Diffstat (limited to 'core/lib.deno_core.d.ts')
-rw-r--r--core/lib.deno_core.d.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/core/lib.deno_core.d.ts b/core/lib.deno_core.d.ts
index 7f3ea2a19..fc7865829 100644
--- a/core/lib.deno_core.d.ts
+++ b/core/lib.deno_core.d.ts
@@ -23,11 +23,17 @@ declare namespace Deno {
/**
* List of all registered ops, in the form of a map that maps op
- * name to internal numerical op id.
+ * name to function.
*/
const ops: Record<string, (...args: unknown[]) => any>;
/**
+ * List of all registered async ops, in the form of a map that maps op
+ * name to function.
+ */
+ const asyncOps: Record<string, (...args: unknown[]) => any>;
+
+ /**
* Retrieve a list of all open resources, in the form of a map that maps
* resource id to the resource name.
*/