Message344172
> * 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. |
|
Date |
User |
Action |
Args |
2019-06-01 13:12:58 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, brett.cannon, dino.viehland, methane, eric.snow |
2019-06-01 13:12:58 | serhiy.storchaka | set | messageid: <1559394778.18.0.119108472111.issue36839@roundup.psfhosted.org> |
2019-06-01 13:12:58 | serhiy.storchaka | link | issue36839 messages |
2019-06-01 13:12:58 | serhiy.storchaka | create | |
|