Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d0dba6e

Browse files
committed
unicode_writer: don't force inline when it is not necessary
Keep inline for performance critical functions (functions used in loops)
1 parent 9cd8853 commit d0dba6e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Objects/unicodeobject.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13665,7 +13665,7 @@ unicode_writer_update(unicode_writer_t *writer)
1366513665
writer->kind = PyUnicode_KIND(writer->buffer);
1366613666
}
1366713667

13668-
Py_LOCAL_INLINE(int)
13668+
Py_LOCAL(int)
1366913669
unicode_writer_init(unicode_writer_t *writer,
1367013670
Py_ssize_t length, Py_UCS4 maxchar)
1367113671
{
@@ -13762,7 +13762,7 @@ unicode_writer_write_char(
1376213762
return 0;
1376313763
}
1376413764

13765-
Py_LOCAL_INLINE(PyObject *)
13765+
Py_LOCAL(PyObject *)
1376613766
unicode_writer_finish(unicode_writer_t *writer)
1376713767
{
1376813768
if (PyUnicode_Resize(&writer->buffer, writer->pos) < 0) {
@@ -13772,7 +13772,7 @@ unicode_writer_finish(unicode_writer_t *writer)
1377213772
return writer->buffer;
1377313773
}
1377413774

13775-
Py_LOCAL_INLINE(void)
13775+
Py_LOCAL(void)
1377613776
unicode_writer_dealloc(unicode_writer_t *writer)
1377713777
{
1377813778
Py_CLEAR(writer->buffer);

0 commit comments

Comments
 (0)