Skip to content

"Deep-freeze": skip the marshal step by generating C code #89859

Closed

Description

@gvanrossum
BPO 45696
Nosy @gvanrossum, @tiran, @ericsnowcurrently
PRs
  • bpo-45696: Deep-freeze #29118
  • bpo-45696: Use a stamp file to speed up rebuild #29522
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/gvanrossum'
    closed_at = None
    created_at = <Date 2021-11-03.00:16:36.166>
    labels = ['interpreter-core', '3.11']
    title = '"Deep-freeze": skip the marshal step by generating C code'
    updated_at = <Date 2021-11-11.13:02:53.229>
    user = 'https://github.com/gvanrossum'

    bugs.python.org fields:

    activity = <Date 2021-11-11.13:02:53.229>
    actor = 'christian.heimes'
    assignee = 'gvanrossum'
    closed = False
    closed_date = None
    closer = None
    components = ['Interpreter Core']
    creation = <Date 2021-11-03.00:16:36.166>
    creator = 'gvanrossum'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 45696
    keywords = ['patch']
    message_count = 3.0
    messages = ['405570', '406131', '406142']
    nosy_count = 3.0
    nosy_names = ['gvanrossum', 'christian.heimes', 'eric.snow']
    pr_nums = ['29118', '29522']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue45696'
    versions = ['Python 3.11']

    Activity

    1. gvanrossum commented on Nov 3, 2021

      @gvanrossum
      MemberAuthor

      See faster-cpython/ideas#84

      This appears to improve startup time by another 10% or more compared to main.

    2. self-assigned this
      on Nov 3, 2021
    3. self-assigned this
      on Nov 3, 2021
    4. gvanrossum commented on Nov 10, 2021

      @gvanrossum
      MemberAuthor

      After PR 29118 is merged we get the benefits on UNIXy systems. We have several TODOs left then:

      • (Definitely:) Generate Windows build files

      • (Probably:) Find a way to avoid having to regenerate everything whenever any source file changes (any source file -> _bootstrap_python -> all generated files)

      • (Maybe:) Consider putting all generated code together in one file, for more savings (and build simplification)

    5. gvanrossum commented on Nov 11, 2021

      @gvanrossum
      MemberAuthor

      New changeset 1cbaa50 by Guido van Rossum in branch 'main':
      bpo-45696: Deep-freeze selected modules (GH-29118)
      1cbaa50

    6. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Labels

    3.11only security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions