Merhaba arkadaşlar;
Microsoft Typescript'i go ile baştan yazmışlar. 10 kata kadar daha hızlı olduğunu iddia ediyorlar
TypeScript derleyicisinin kendisi de dahil olmak üzere birçok popüler TypeScript projesini yükleme yeteneğine zaten sahip. İşte GitHub'daki çeşitli boyutlardaki bazı popüler kod tabanlarında tsc'yi çalıştırmanın zamanları:
- Codebase | Size (LOC) | Current | Native | Speedup |
- VS Code | 1,505,000 | 77.8s | 7.5s | 10.4x |
- Playwright | 356,000 | 11.1s | 1.1s | 10.1x |
- TypeORM | 270,000 | 17.5s | 1.3s | 13.5x |
- date-fns | 104,000 | 6.5s | 0.7s | 9.5x |
- tRPC (server + client) | 18,000 | 5.5s | 0.6s | 9.1x |
- rxjs (observable) | 2,100 | 1.1s | 0.1s | 11.0x |
Kaynaklar
https://devblogs.microsoft.com/typescript/typescript-native-port/
https://github.com/microsoft/typescript-go