grunt-ts: Compiling is slow

Using grunt-ts, compiling takes almost twice as long as the tsc compiler.

$ time tsc main.ts -out test.js 
real    0m6.366s

$ grunt cm
Running "ts:api" (ts) task
Compiling.
Success: 14.38s for 1 typescript files

About this issue

  • Original URL
  • State: closed
  • Created 11 years ago
  • Comments: 20 (10 by maintainers)

Most upvoted comments

Best bet for speed of compilation in development with TypeScript is to use built-in watch parameter with tsc or an editor that supports compile on save. Grunt is not optimized for these scenarios because it is based around doing everything from scratch on each build. Grunt is more for consistency than performance.