Skip to content

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Apr 21, 2018

  • Replace LOAD_CONST c1, LOAD_CONST c2, ... LOAD_CONST cn, BUILD_LIST n
    with LOAD_CONST (c1, c2, ... cn), BUILD_LIST_UNPACK 1.

  • Replace LOAD_CONST c1, LOAD_CONST c2, ... LOAD_CONST cn, BUILD_SET n
    with LOAD_CONST frozenset({c1, c2, ... cn}), BUILD_SET_UNPACK 1.

  • Replace LOAD_CONST c1, LOAD_CONST c2, ... LOAD_CONST cn
    with LOAD_CONST (c1, c2, ... cn), UNPACK_SEQUENCE n.

  • Remove unused constants.

https://bugs.python.org/issue33325

@serhiy-storchaka
Copy link
Member Author

Closed because in practice the benefit is very small and not stable.

@serhiy-storchaka serhiy-storchaka deleted the compiler-consts branch November 20, 2018 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants