You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
csv.reader calls the state machine for every character needlessly #138213
if (parse_process_char(self, module_state, c) <0) {
Py_DECREF(lineobj);
goto err;
}
Even putting aside sophisticated SIMD or branching optimizations, it could be more efficient.
Most time is likely to be spent in a field (IN_FIELD, IN_QUOTED_FIELD). It's more efficient to find interesting characters (ie: escapes, quotes) and just copy the whole slice in between.
Activity
pythongh-138213: Speed up csv.reader by copying whole runs of ordinar…
pythongh-138213: Speed up csv.reader by copying whole runs of ordinar…