just curious, what's the modern way to do Rust fs and tcp streams?
paging @yoshuawuyts and other rustaceans
-
-
Replying to @cryptoquick
Runtime is currently the easiest way to do async networking. We're not too far off from async fs too! Maybe give it a spin; would love to hear how it works out for you!
1 reply 0 retweets 2 likes -
Replying to @yoshuawuyts
was just looking into it, thank you for the quick reply, and I'll let you know how it goes! another concern is performance, I'm making a database, but I have a feeling perf improvements will only come from testing & experimentation.
1 reply 0 retweets 1 like -
Replying to @cryptoquick
Ah! Well if you're building a DB it's probably best to stick with sync fs access for now. The way the async io traits currently work they make the fs calls about twice as slow compared to their sync counterparts. This is something that needs to be resolved in the futures crate.
1 reply 0 retweets 0 likes -
Replying to @yoshuawuyts
Hm... You may be right. At least, for 1.0, sync will likely be fine. I'm used to Node.js streams, they're quite effective. I read your recent article on streams and got so excited... It wasn't quite clear the current state of work from what I skimmed.
1 reply 0 retweets 1 like
Ha yeah, a lot of things are moving right now. I'm quite excited by it!
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.