You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Good to have because it's much faster. It doesn't have the overhead of scheduling asynchronous work or copying data from that thread to the JavaScript main thread. It also enables an optimization of reusing a buffer for the data transfer, knowing that only 1 thread at a time needs access to that buffer. I did a POC of that in classic-level having seen the same trick in lmdb and (although I only implemented it for keyEncoding: 'utf8') it worked rather well without adding too much complexity. The only unfortunate thing is that LevelDB's Get() method copies the data into an std::string and has no alternative API to avoid that intermediary buffer (and a double copy). Maybe it's worth a patch. The upstream code doesn't change often so I think that'd be okay.
Activity
Add `db.getSync()` method
Add `db.getSync()` method
Add `getSync()` method (#114)
Add `db.getSync()` method
Add `db.getSync()` method
Add `db.getSync()` method (#120)
Implement `db.getSync()`
Implement `db.getSync()` (#21)
Document that `db.getSync()` is not supported