dendrite/common
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
..
basecomponent refactor: Move p2p specific stuff to cmd/dendritejs 2020-03-04 13:55:40 +00:00
config Latest hacks for js 2020-02-25 22:51:10 +00:00
http use go module for dependencies (#594) 2019-05-21 21:56:55 +01:00
keydb Add an LRU cache around the key DB 2020-03-04 18:00:12 +00:00
test Fix AppService bind addrs in test (#805) 2020-02-11 13:53:54 +00:00
transactions Replace deprecated prometheus.InstrumentHandler and unsafe time.Ticker 2019-12-17 16:47:45 +00:00
consumers.go use go module for dependencies (#594) 2019-05-21 21:56:55 +01:00
eventcontent.go Replace event content types with ones in gomatrixserverlib (#785) 2019-08-16 01:45:11 +08:00
events.go Pass cfg by reference around the codebase (#819) 2020-02-11 11:18:12 +00:00
httpapi.go Replace deprecated prometheus.InstrumentHandler and unsafe time.Ticker 2019-12-17 16:47:45 +00:00
log.go Add filepath and function name to log output (#755) 2019-07-24 12:44:05 +08:00
partition_offset_table.go Support sqlite in addition to postgres (#869) 2020-02-13 17:27:33 +00:00
routing.go Encode URLs properly (#728) 2019-07-03 16:38:50 +01:00
sql.go Use sqlite3_js driver when running in JS 2020-02-22 20:53:57 +00:00
types.go Implement profile retrieval over federation (#726) 2019-08-07 00:02:12 +08:00