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-February/019886.html below:

add basic time type to the standard library

[Python-Dev] proposal: add basic time type to the standard library [Python-Dev] proposal: add basic time type to the standard libraryGuido van Rossum guido@python.org
Sat, 09 Feb 2002 08:55:07 -0500
> WRT RAM usage, a Python int is no smaller than a TimeStamp object.

Wrong, unless TimeStamps also use a custom allocator.  The custom
allocator uses 12 bytes per int (on a 32-bit machine) and incurs
malloc overhead + 8 bytes of additional overhead for every 82 ints.
That's about 12.2 bytes per int object; using malloc it would probably
be 24 bytes.  (PyMalloc would probably do a little better, except it
would still round up to 16 bytes.)

If TimeStamp objects were to use a similar allocation scheme, they
could be pushed down to 16.2 bytes.

--Guido van Rossum (home page: http://www.python.org/~guido/)



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