New submission from STINNER Victor: Attached patch splits the huge "switch (opcode)" of ceval.c into smaller ceval_xxx.h files. New files:
93 Python/ceval_stack.h 142 Python/ceval_condjump.h 155 Python/ceval_misc.h 162 Python/ceval_fast.h 180 Python/ceval_module.h 238 Python/ceval_ctx.h 249 Python/ceval_func.h 262 Python/ceval_iter.h 268 Python/ceval_build.h 384 Python/ceval_number.h Maybe we can put more files per .h file, maybe less. I don't really care. It will allow to keep the code readable even with new optimizations like the issue #21955. What do you think? ---------- files: split_ceval.patch keywords: patch messages: 259682 nosy: haypo, pitrou, serhiy.storchaka, yselivanov priority: normal severity: normal status: open title: Split ceval.c into small files versions: Python 3.6 Added file: http://bugs.python.org/file41827/split_ceval.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26298> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com