Diesel performs 33% faster than rust-postgres, and will be
competitive with if not faster than ideomatic C.
Interesting. What makes it faster than rust-postgress? Diesel performs 33% faster than rust-postgres, and will be
competitive with if not faster than ideomatic C.
Interesting. What makes it faster than rust-postgress?Long version: http://bikeshed.fm/49
Longer version: Planning on doing a really in depth write up for the website soon. I'll also be going into more detail during my talk at the SF rust meetup, which there's a link to the live stream towards the bottom of the thread
As far as I saw, Diesel is essentially shipping with its own PostgreSQL driver.
Please include in your larger talk!
(Sorry for the double post, I think I replied to my own comment and not yours!)
I don't think you're ragging on rust-postgress, although I'd probably attempt to change rust-postgres first :P
rusqlite has the same issues. libsqlite doesn't since it's just C bindings. Same as pq_sys. Ironically, rusqlite makes the same design choices as rust-postgres, but it's actually wrapping a heap allocated object anyway, so it gains nothing by doing so...
> I'd probably attempt to change rust-postgres first
I did, too. It turned out to be a pretty major rewrite.