- Jul 03, 2019
-
-
Petr Špaček authored
-
Petr Špaček authored
-
Petr Špaček authored
cache garbage collector Closes #257 See merge request !817
-
Petr Špaček authored
Main motivation is getting rid of tab-space mix.
-
I think the condition is still quite well readable even though much shorter than my original !(kd[i - 1] == 0 && kd[i - 2] == 0)
-
Petr Špaček authored
-
Petr Špaček authored
-
Petr Špaček authored
-
Petr Špaček authored
-
Petr Špaček authored
-
- don't print a line in every checking cycle - don't exit when cache isn't found - reduce recommended interval to 10s (compromise) - don't increase cache size (but keep the code for now)
-
I can't see any real benefit of floating-point in the amount_tofree computation; we could use round(), but it doesn't seem significant.
-
For example, "10foo" will no longer be accepted as number 10.
-
It should be no real change, just better readability, hopefully.
-
Basically all use cases get renamed to *_E(), except one in utils/kr_cache_gc. It was perhaps confusing that this name only applied to 'E' entries.
-
categories: different level of what should be deleted based on DB usage
-