1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-04 04:03:13 +02:00

[tkldb] Save every 5 minutes now that writing is fast enough :)

And mention the benchmark figures in the .c file.
This commit is contained in:
Bram Matthys
2019-06-05 09:01:04 +02:00
parent eaa1b213b9
commit ec5811dc3b
+9 -1
View File
@@ -20,10 +20,18 @@
#include "unrealircd.h"
#define TKL_DB_VERSION 1100
#define TKL_DB_SAVE_EVERY 893
#define TKL_DB_SAVE_EVERY 299
#ifdef DEBUGMODE
#define BENCHMARK
/* Benchmark results (2GHz Xeon Skylake, compiled with -O2, Linux):
* 100,000 zlines:
* - load db: 510 ms
* - save db: 72 ms
* Thus, saving does not take much time and can be done by a timer
* which executes every 5 minutes.
* Of course, exact figures will depend on the machine.
*/
#endif
#define FreeTKLRead() \