jb55 on Nostr: nostrdb is now much faster than strfry when processing duplicate incoming events. ...
nostrdb is now much faster than strfry when processing duplicate incoming events. strfry will fully parse and validate an event before checking if it exists in the local DB. nostrdb will:
1. Check if the ID exists in the database without fully parsing the event
2. Only validate the event if we don’t have it in the database yet.
Processing 4GB of duplicate contact lists now takes 200ms instead of 6 seconds on an old laptop.
This matters a lot on mobile devices where we don’t want to burn battery when we don’t need to
1. Check if the ID exists in the database without fully parsing the event
2. Only validate the event if we don’t have it in the database yet.
Processing 4GB of duplicate contact lists now takes 200ms instead of 6 seconds on an old laptop.
This matters a lot on mobile devices where we don’t want to burn battery when we don’t need to
quoting note1rq2…x7ghinsane optimization: check id existence before parsing entire json (William Casarin)
pushed to nostrdb:refs/heads/master
http://git.jb55.com/nostrdb/commit/e87228d19ad6965fd143bdf9a962f7d904fc4e33.html