Connection Pool: fix LRFU implementation to not actually be LRU
authorrinpatch <rinpatch@sdf.org>
Wed, 1 Jul 2020 22:53:27 +0000 (01:53 +0300)
committerrinpatch <rinpatch@sdf.org>
Wed, 15 Jul 2020 12:26:35 +0000 (15:26 +0300)
commita705637dcf7ffe063c9c0f3f190f57e44aaa63f2
tree70ef6811190c7b1496f4aa23b4cf4b6ce7745e33
parent9b73c35ca8b051316815461247b802bc8567854f
Connection Pool: fix LRFU implementation to not actually be LRU

The numbers of the native time unit were so small the CRF was always 1,
making it an LRU. This commit switches the time to miliseconds and changes
the time delta multiplier to the one yielding mostly highest hit rates according
to the paper
lib/pleroma/gun/connection_pool/worker.ex