fastcache
fastcache copied to clipboard
why not byte.Compare for this fastcache.go?
:392
byte.compare shld be faster?
if string(k) == string(chunk[idx:idx+keyLen]) {
Why it should?
byte comparison is faster?
Why it should be?
no need conversion of bytes to string
there are many other optimization opportunities but this is one the most obvious. it's being used as a cache so let's make it as fast as it can be?
other optimization opportunities
which one?
This one https://github.com/VictoriaMetrics/fastcache/issues/36