Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

optimize ApiFromModules type performance #76

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ssalbdivad wants to merge 13 commits into get-convex:main
base: main
Choose a base branch
Loading
from ssalbdivad:type-optimizations
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
13 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add type bench
  • Loading branch information
ssalbdivad committed Aug 20, 2025
commit 55454772b9e7ab5f95d8542aaaf8d2d4e27bf92c
3 changes: 2 additions & 1 deletion package.json
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@
"test": "vitest --silent",
"test-not-silent": "vitest",
"typecheck": "tsc --noEmit --emitDeclarationOnly false",
"test-esm": "node ./scripts/test-esm.mjs && ./scripts/checkdeps.mjs && ./scripts/checkimports.mjs"
"test-esm": "node ./scripts/test-esm.mjs && ./scripts/checkdeps.mjs && ./scripts/checkimports.mjs",
"type-bench": "node ./src/test/types.bench.ts"
},
"files": [
"bin",
Expand Down
3 changes: 0 additions & 3 deletions src/test/fake_chef/package.json
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"name": "fake-chef",
"engines": {
"node": ">=18.18.0"
},
"dependencies": {
"@convex-dev/migrations": "^0.2.7",
"@convex-dev/rate-limiter": "^0.2.6",
Expand Down
5 changes: 4 additions & 1 deletion src/test/types.bench.ts
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import { bench } from "@ark/attest";
import type { api } from "./fake_chef/_generated/api.js";

bench("ApiFromModules", () => {}).types();
bench("ApiFromModules", () => {
return {} as typeof api;
}).types([115837, "instantiations"]);

AltStyle によって変換されたページ (->オリジナル) /