codex-storage / nim-codex

Decentralized Durability Engine
Apache License 2.0
60 stars 22 forks source link

Discuss & plan moving to async-io #774

Open elcritch opened 4 months ago

elcritch commented 4 months ago

@tbekas and myself were discussing the issue of blocking disk io in the client. This impacts both file and sqlite access. We'd put moving to a multithreaded io until after the testnet release.

Before working on this we need to have a couple of client team meetings specifically to discuss what and how to do this. Ideally we can share perspectives and get agreements on approaches and how to break it up and plan things.

Suggested points to discuss:

tbekas commented 4 months ago

Thanks for the summary, I think that solving this should be a priority. Even if the tradeoff is data-copying with refc.

elcritch commented 4 months ago

Blocked by https://github.com/codex-storage/nim-codex/issues/775

Essentially moving to non-blocking disk IO leads to lots of issues with QueryIterator and AsyncIterator's.