Skip to content
Snippets Groups Projects
Select Git revision
0 results

pymysql

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Yuriy Taraday authored
    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.
    cd988f7b
    History
    Name Last commit Last update