This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients brett.cannon, dino.viehland, eric.snow, methane, serhiy.storchaka
Date 2019-06-01.13:12:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1559394778.18.0.119108472111.issue36839@roundup.psfhosted.org>
In-reply-to
Content
> * They need to use lightweight object for buffer.  At least,
> memoryview object is large (192byte
>  on Python 3.7.3 amd64).

Actually it is larger, because you should add the size of internal objects. In 3.8:

>>> sys.getsizeof(memoryview(b''))
184
>>> sys.getsizeof(gc.get_referents(memoryview(b''))[0])
128

312 bytes total, not counting padding. The average size of co_code in Lib/*.py is 85 bytes. Unless Instagram uses gigantic functions and methods (and no comprehensions or lambdas), the net benefit will be negative.
History
Date User Action Args
2019-06-01 13:12:58serhiy.storchakasetrecipients: + serhiy.storchaka, brett.cannon, dino.viehland, methane, eric.snow
2019-06-01 13:12:58serhiy.storchakasetmessageid: <1559394778.18.0.119108472111.issue36839@roundup.psfhosted.org>
2019-06-01 13:12:58serhiy.storchakalinkissue36839 messages
2019-06-01 13:12:58serhiy.storchakacreate