Remix.run Logo
apatheticonion 7 hours ago

I wrote a simple multi threaded transpiler to transpile TypeScript to JavaScript using oxc in Rust. It could transpile 100k files in 3 seconds.

It's blisteringly fast

iberator 6 hours ago | parent [-]

sounds impossible to even index and classify files so fast. What hardware?

AYBABTME 5 hours ago | parent | next [-]

Let's say 100k files is 300k syscalls, at ~1-2us per syscall. That's 300ms of syscalls. Then assume 10kb per file, that's 1GB of file, easily done in a fraction of a second when the cache is warm (it'll be from scanning the dir). That's like 600ms used up and plenty left to just parse and analyze 100k things in 2s.

ido 6 hours ago | parent | prev [-]

I’m assuming they meant 100kloc rather than 100,000 files of arbitrary size (how could we even tell how impressive that is without knowing how big the files are?)

3 hours ago | parent [-]
[deleted]