I'm trying to optimize some parts of my Go application and profiling the CPU with pprof
I got some numbers that, first of all, surprise me.
It feels weird to me that lines 81, 82, and 83 are one of the slower ones. They are only applying bitwise operations on some variables. value
, upper
, and lower
are all of type byte
.
What I am missing here? I don't see how I can optimize those operations. Am I missing understanding these numbers?