You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Previously, all of my code was in a single directory. I decided to organize them and created multiple sub directories and used
sourceFile.move
(triedmoveImmediately
,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.The text was updated successfully, but these errors were encountered: