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 <>
> * 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''))
>>> sys.getsizeof(gc.get_referents(memoryview(b''))[0])

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.
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: <>
2019-06-01 13:12:58serhiy.storchakalinkissue36839 messages
2019-06-01 13:12:58serhiy.storchakacreate