On Mon, Jun 22, 2020 at 8:27 PM Barry Scott <ba...@barrys-emacs.org> wrote: > > * New code and pyc format > * pyc has "rodata" segment > * It can be copied into single memory block, or can be mmapped. > * co_code should be aligned at least 2 bytes. > > > Would higher alignment help? malloc is using 8 or 16 byte alignment isn't it? > Would that be better for packing the byte code into cache lines? >
It may. But I am not sure. I said "at least 2 byte" because we use "word code". We read the "word code" by `uint16_t *`, not `unsignet char *`. _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/PMPWPP2YF7JSTT6XOVCXNF6G7X6WSSEU/ Code of Conduct: http://python.org/psf/codeofconduct/