News for hackers. Stuff that matters.
Re:All I Want for Christmas Is These Seven TypeScript Improv... by winrid on Tuesday December 27, 2022 @09:22PM (#34156793)
When I say this:

> especially if the project has many files to load at runtime for interpretation. I bet it's spending a lot of time on require().

I am talking about tsc itself. If there are hundreds/thousands of modules to load, node will spend time on that. coffeescript is a much smaller transpiler, with just a handful of source files.

EDIT - looks like tsc might get distributed as a single file, which helps here. However, it is a 7mb source file :)

https://raw.githubusercontent.com/microsoft/TypeScript/main/...

When I execute it locally, with no arguments, it finishes instantly as far as I can tell. So maybe tsc itself is indeed super slow for just an empty file.

There are no comments on this comment yet.