0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-20 10:58:20 +02:00

ircd:Ⓜ️:homeserver: Optimize bootstrap eval w/ unique/replays assumptions.

This commit is contained in:
Jason Volk 2020-09-13 00:15:44 -07:00
parent a297976cd4
commit 453748c00a

View file

@ -258,6 +258,17 @@ try
// Sorting may be slow for large inputs; but the alternative may be also...
//vmopts.ordered = true;
// Optimize eval if we guarantee there's only one copy of each event
// in the input. This particular option is if we can at least guarantee
// duplicates aren't near each other in the array (there should be no
// duplicates).
vmopts.unique = false;
// Optimize eval if we guarantee there's only one copy of each event
// in the input. If there are duplicates anywhere in the input they will
// be replayed, which is really bad.
vmopts.replays = true;
// Outputs to infolog for each event; may be noisy;
vmopts.infolog_accept = false;