Serhiy Storchaka added the comment: Here is a patch which restores optimization for frame headers. Unfortunately it breaks test_optional_frames. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue17810> _______________________________________