Home
last modified time | relevance | path

Searched refs:overallocate (Results 1 - 13 of 13) sorted by relevance

/third_party/python/Objects/stringlib/
H A Dcodecs.h326 /* Only overallocate the buffer if it's not the last write */ in utf8_encoder()
327 writer->overallocate = (endpos < size); in utf8_encoder()
391 writer->overallocate = 1; in utf8_encoder()
400 /* Only overallocate the buffer if it's not the last write */ in utf8_encoder()
401 writer->overallocate = (newpos < size); in utf8_encoder()
435 assert(writer->overallocate || i == size); in utf8_encoder()
H A Dunicode_format.h887 writer->overallocate = 0; in do_markup()
895 writer->overallocate = 0; in do_markup()
924 writer.overallocate = 1; in build_string()
/third_party/python/Include/cpython/
H A Dbytesobject.h73 /* If non-zero, overallocate the buffer (default: 0).
75 int overallocate; member
84 By default, the overallocation is disabled. Set the overallocate attribute
H A Dunicodeobject.h732 /* If non-zero, overallocate the buffer (default: 0). */
733 unsigned char overallocate; member
743 * disabled. Set min_length, min_char and overallocate attributes to control
/third_party/python/Objects/
H A Dbytesobject.c207 writer.overallocate = 1; in PyBytes_FromFormatV()
605 writer.overallocate = 1; in _PyBytes_FormatEx()
810 writer.overallocate = 0; in _PyBytes_FormatEx()
1037 assert(writer.overallocate || fmtcnt == 0 || use_bytearray); in _PyBytes_FormatEx()
1075 writer.overallocate = 1; in _PyBytes_DecodeEscape()
2710 writer.overallocate = 1; in _PyBytes_FromList()
2792 writer.overallocate = 1; in _PyBytes_FromIterator()
3289 /* On Windows, overallocate by 50% is the best factor */
3292 /* On Linux, overallocate by 25% is the best factor */
3361 assert(!writer->overallocate); in _PyBytesWriter_CheckConsistency()
[all...]
H A Dtupleobject.c238 writer.overallocate = 1; in tuplerepr()
271 writer.overallocate = 0; in tuplerepr()
H A Dstructseq.c246 writer.overallocate = 1; in structseq_repr()
H A Dunicodeobject.c215 /* On Windows, overallocate by 50% is the best factor */
218 /* On Linux, overallocate by 25% is the best factor */
2871 writer->overallocate = 0; in unicode_fromformat_arg()
3093 writer.overallocate = 1; in PyUnicode_FromFormatV()
3124 writer.overallocate = 0; in PyUnicode_FromFormatV()
4582 writer->overallocate = 1; in unicode_decode_call_errorhandler_writer()
7101 /* Only overallocate the buffer if it's not the last write */ in unicode_encode_ucs1()
7102 writer.overallocate = (collend < size); in unicode_encode_ucs1()
7165 writer.overallocate = 1; in unicode_encode_ucs1()
7174 /* Only overallocate th in unicode_encode_ucs1()
[all...]
H A Dlistobject.c71 /* Do not overallocate if the new size is closer to overallocated size in list_resize()
396 writer.overallocate = 1; in list_repr()
422 writer.overallocate = 0; in list_repr()
H A Ddictobject.c2418 writer.overallocate = 1; in dict_repr()
2466 writer.overallocate = 0; in dict_repr()
/third_party/python/Python/
H A Dast_unparse.c626 body_writer.overallocate = 1; in build_fstring_body()
932 writer.overallocate = 1; in expr_as_unicode()
/third_party/python/Modules/
H A D_json.c403 writer.overallocate = 1; in scanstring_unicode()
H A D_pickle.c2597 writer.overallocate = 1; in raw_unicode_escape()

Completed in 45 milliseconds