I mean synchronous access in code (no futures/promises)
Login to reply
Replies (2)
That feels so wrong. Everything on Android these days is async. The sync stuff is all wait calls on async procedures.
Does it feel wrong to access memory synchronously?
It all depends on the i/o operation, where and for how long it's blocking. Nostrdb should be crazy fast, way faster than sqlite3 whose most popular bindings are...also sync.
Sync allows for API design that async does not, and I want that flexibility at this lower level. You can always turn sync into async but not the other way round.