| ▲ | malisper 4 hours ago | |
I can confirm a naive rewrite won't make things faster. I've been working on rewriting Postgres in Rust. I rewrote things function by function similar to how Jarred did. Even though the new Rust code mapped closely with the previous C code, it was 8x slower. This was due to myriad of reasons. For example naively converting a C union into a Rust enum can be slower because Rust stores a tag with the enum, while C unions do not. I've been working on a new rewrite that's focused on beating Postgres on performance. As of this morning I got to 100% of the tests passing and have meaningful performance gains over Postgres. | ||
| ▲ | nvader 2 hours ago | parent | next [-] | |
I hope that you're going to call it PostGrust. | ||
| ▲ | xeromal 44 minutes ago | parent | prev [-] | |
Would love to follow your journey! | ||