Skip to content
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

10X slowdown depending on current working directory #1279

Open
louwers opened this issue Jan 23, 2025 · 0 comments
Open

10X slowdown depending on current working directory #1279

louwers opened this issue Jan 23, 2025 · 0 comments

Comments

@louwers
Copy link

louwers commented Jan 23, 2025

time npx tsup ~/src/typebox/src/index.ts --dts-only --dts --tsconfig ~/src/typebox/tsconfig.json --format esm
CLI Building entry: ../../typebox/src/index.ts
CLI Using tsconfig: ../../typebox/tsconfig.json
CLI tsup v8.3.5
DTS Build start
DTS ⚡️ Build success in 1718ms
DTS dist/index.d.ts 146.95 KB
npx tsup ~/src/typebox/src/index.ts --dts-only --dts --tsconfig  --format esm  29.78s user 48.55s system 233% cpu 33.482 total

Now cd ~/src/typebox...

% time npx tsup src/index.ts --dts-only --dts --tsconfig tsconfig.json --format esm
CLI Building entry: src/index.ts
CLI Using tsconfig: tsconfig.json
CLI tsup v8.3.5
DTS Build start
DTS ⚡️ Build success in 1418ms
DTS dist/index.d.mts 146.95 KB
npx tsup src/index.ts --dts-only --dts --tsconfig tsconfig.json --format esm  4.22s user 0.17s system 235% cpu 1.869 total

So the working directory has a significant impact on performance...

The actual build time is the same, but somehow it takes a long time to start.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant