.net - Faster way to convert byte array to int -
is there faster way bitconverter.toint32
convert byte array int value?
if remember correctly, implementation uses unsafe code (treating byte* int*), hard beat, other alternative shifting.
however, lots of work in area, unlikely genuine bottleneck irrelevant. i/o main issue, typically.
getbytes(int), however, is more expensive (in high volume) due array / heap allocation.
Comments
Post a Comment