Microsoft has launched TypeScript version 3.9, adding more tools to its fledgling programming language. The most notable of the changes is the service will now compile faster. Microsoft says the gains are most notable in the UI libraries material-ui and styled-components.
According to the TypeScript team, pull requests allowed the optimization of pathological cases of large conditional types, intersections and mapped types. The result is a significant improvement in compiling times.
“Our team has been focusing on performance after observing extremely poor editing/compilation speed with packages like material-ui and styled-components,” the team says.
“Each of these pull requests gains about a 5% to 10% reduction in compile times on certain codebases. In total, we believe we’ve achieved around a 40% reduction in material-ui’s compile time.”
Pointing to the performance gains in TypeScript 3.9, a Microsoft employee working on Outlook for Web says compile times on his workloads reduced from 26 seconds to 10 seconds.
Microsoft’s TypeScript is becoming increasingly popular amongst developers. Analyst firm RedMonk revealed recently TypeScript is now the 12th most used programming language on GitHub and Stack Overflow.
If you want to know more about changes made in TypeScript 3.9, check out Microsoft’s official blog post. For example, there are changes to the editor experience, alongside improved compliance with the ECMAScript.
“For this release our team been has been focusing on performance, polish, and stability. We’ve been working on speeding up the compiler and editing experience, getting rid of friction and papercuts, and reducing bugs and crashes.”