ssbc / ssb-db2

A new database for secure-scuttlebutt
47 stars 8 forks source link

Faster single add #352

Closed arj03 closed 2 years ago

arj03 commented 2 years ago

add() is used in EBT so should be as fast as possible, this avoids some overhead. classic add goes from 8400 to 8800 with this change.

arj03 commented 2 years ago

Should be ready now :)

staltz commented 2 years ago

Awesome

arj03 commented 2 years ago

I think we can start looking at the uri changes e.g. now and see if we can add some of the things back

staltz commented 2 years ago

URI changes, you mean the buttwoo URI with author+parent?

And, add which things back?

arj03 commented 2 years ago

Things like this https://github.com/ssbc/ssb-db2/pull/347/files#diff-decb92c24aa3521a8f55136e6d18b8b5e8ca42fec174f0882079bf39f6a4e265R98

staltz commented 2 years ago

Hmm, the link just points me to the whole PR