mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-12 19:49:32 +02:00
A further 5% speedup for UTF-8 decoding
Achieved by decoding in larger chunks thereby amortizing the cost of creating various constant vectors over larger chunks.
This commit is contained in:
@@ -101,7 +101,7 @@ test_utf8_decode_to_sentinel(PyObject *self UNUSED, PyObject *args) {
|
||||
}
|
||||
}
|
||||
utf8_decoder_free(&d);
|
||||
return Py_BuildValue("OO", found_sentinel ? Py_True : Py_False, ans);
|
||||
return Py_BuildValue("OOi", found_sentinel ? Py_True : Py_False, ans, p);
|
||||
}
|
||||
// }}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user