mirror style for randomized cache insertion sentence

This commit is contained in:
Damian Gryski 2018-03-04 10:52:51 -08:00
parent d2a4abc11d
commit d524aca4c2

View File

@ -586,8 +586,7 @@ Cache common cases:
`time.Parse()` for significant speedup.
* But beware cache invalidation, thread issues, etc.
* Random cache eviction is fast and sufficiently effective.
* Only put "some" items in cache (probabilistically) to limit cache size
to popular items with minimal logic.
* Random cache insertion can limit cache to popular items with minimal logic.
* Compare cost of cache logic to cost of refetching the data.
* A large cache can increase GC pressure and keep blowing processor cache.