dendrite/common/keydb/sqlite3
Kegan Dougal cfe97cd874 Add an LRU cache around the key DB
We actually need this for P2P because otherwise we can *segfault*
with things like: "runtime: unexpected return pc for runtime.handleEvent"
where the event is a `syscall/js` event, caused by spamming sql.js
caused by "Checking event signatures for 14 events of room state" which
hammers the key DB repeatedly in quick succession.

Using a cache fixes this, though the underlying cause is probably a bug
in the version of Go I'm on (1.13.7)
2020-03-04 18:00:12 +00:00
..
keydb.go Use sqlite3_js driver when running in JS 2020-02-22 20:53:57 +00:00
server_key_table.go Add an LRU cache around the key DB 2020-03-04 18:00:12 +00:00