Do not walk chars for hex and numbers one by one, this boosts performance while inserting huge blobs (bug #1315232).
This commit is contained in:
@@ -460,8 +460,16 @@ if ($is_minimum_common == FALSE) {
|
||||
$is_float_digit = FALSE;
|
||||
$is_float_digit_exponent = FALSE;
|
||||
|
||||
// Nijel: Fast skip is especially needed for huge BLOB data:
|
||||
if ($is_hex_digit) {
|
||||
$count2++;
|
||||
$pos = strspn($sql, '0123456789abcdefABCDEF', $count2);
|
||||
if ($pos > $count2) $count2 = $pos;
|
||||
unset($pos);
|
||||
} elseif ($is_digit) {
|
||||
$pos = strspn($sql, '0123456789', $count2);
|
||||
if ($pos > $count2) $count2 = $pos;
|
||||
unset($pos);
|
||||
}
|
||||
|
||||
while (($count2 < $len) && PMA_STR_isSqlIdentifier(PMA_substr($sql, $count2, 1), ($is_sql_variable || $is_digit))) {
|
||||
|
Reference in New Issue
Block a user