-
- Downloads
Zero-copy integer parsing
Common method to parse integer was very inefficient: - read method has been called to create a copy of couple bytes; - separate method has been called just to call struct.unpack; - for one-byte integers always failing type check happend in byte2int method; - for three-byte integers there were extra bytes concatenation. This change makes all integer parsing with no copies and with minimal method calls number.
Please register or sign in to comment