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

sourceFile.move significantly slows down the speed #1613

Open
shinebayar-g opened this issue Feb 6, 2025 · 0 comments
Open

sourceFile.move significantly slows down the speed #1613

shinebayar-g opened this issue Feb 6, 2025 · 0 comments

Comments

@shinebayar-g
Copy link

shinebayar-g commented Feb 6, 2025

Previously, all of my code was in a single directory. I decided to organize them and created multiple sub directories and used sourceFile.move (tried moveImmediately, moveImmediatelySync, moveToDirectory as well).

However, this operation seems really expensive. Without moving source files, ts-morph was taking 5 seconds to complete everything (which involves various property modifications, interface modifications etc).
With moving, it took 10+ minutes to finish. It seems it starts really fast in the beginning, but as time goes on it becomes slower and slower.

Is there any trick that I can use to speed up the process?

Update: It seems it's relatively faster when using tsx (3 minutes). Bun and Deno took 10+ minutes.

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