A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-April/023705.html below:

[Python-Dev] pymalloc and overallocation (unicodeobject.c,2.139,2.140 checkin)

[Python-Dev] pymalloc and overallocation (unicodeobject.c,2.139,2.140 checkin)Tim Peters tim.one@comcast.net
Sat, 27 Apr 2002 00:42:20 -0400
[Guido]
> Yet another idea: decode into a fixed-size stack-allocated buffer.  If
> it fits in that buffer, use PyString_FromStringAndSize().  Otherwise,
> do the overallocation thing.

How come we can't use a version of C that pulls this trick for us
automatically <wink>?  We do end up there a lot.

Here's a patch that does it for PyUnicode_EncodeUTF8:

    http://www.python.org/sf/549375





RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4