by pixelpoet · 2y ago · 0 comments
Especially considering they use unsafe "heavily", for big joins they could easily just call out to some native code if the surrounding code reaaaaally must be Java (again, why?). It's the worst of both worlds using unsafe Java: you don't get native speed, there's loads of memory overhead from everything being an Object (besides the rest of the VM stuff), and get to "enjoy" GC pauses in the middle of your hot loops, and with fewer safety guarantees than something like Rust.
https://questdb.io/blog/leveraging-rust-in-our-high-performa...
Would be interesting to see benchmarks here, do you know if there are any public ones available, specific to QuestDB's interop code?
I couldn't even try to count the number of great posts I've read about fast hash tables from e.g. Paul Khuong alone...