• unknown's avatar
    Bug#15811: extremely long time for mysql client to execute long INSERT · 15ac6406
    unknown authored
    The problem was in redundant calls to strlen() in string functions,
    where we may then return after checking only the small number of characters.
    
    No test case is provided since it's a performance fix.
    
    
    strings/ctype-mb.c:
      Do not use strlen() where arbitrary horizon of at least
      CHARSET_INFO::mbmaxlen character is sufficient.
    15ac6406
ctype-mb.c 27.2 KB