Skip to content

_freeze_module on Windows can be built faster with no optimization #90281

Closed

Description

@neonene
mannequin
BPO 46123
Nosy @pfmoore, @tjguk, @zware, @zooba, @neonene
PRs
  • bpo-46123: Disable optimizations for _freeze_module.exe on MSVC for faster building #30181
  • 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 = None
    closed_at = <Date 2021-12-19.14:55:29.587>
    created_at = <Date 2021-12-18.11:50:48.124>
    labels = ['3.11', 'build', 'OS-windows', 'performance']
    title = '_freeze_module on Windows can be built faster with no optimization'
    updated_at = <Date 2021-12-19.14:55:29.586>
    user = 'https://github.com/neonene'

    bugs.python.org fields:

    activity = <Date 2021-12-19.14:55:29.586>
    actor = 'steve.dower'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-12-19.14:55:29.587>
    closer = 'steve.dower'
    components = ['Build', 'Windows']
    creation = <Date 2021-12-18.11:50:48.124>
    creator = 'neonene'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 46123
    keywords = ['patch']
    message_count = 2.0
    messages = ['408841', '408904']
    nosy_count = 5.0
    nosy_names = ['paul.moore', 'tim.golden', 'zach.ware', 'steve.dower', 'neonene']
    pr_nums = ['30181']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'performance'
    url = 'https://bugs.python.org/issue46123'
    versions = ['Python 3.11']

    Activity

    1. neonene commented on Dec 18, 2021

      neonenemannequin
      MannequinAuthor

      In Makefile.pre.in, LTO is disabled when building _freeze_module. MSVC can also cut the build time of _freeze_module.exe in half without the optimization.

    2. added
      3.11only security fixes
      buildThe build process and cross-build
      performancePerformance or resource usage
      on Dec 18, 2021
    3. zooba commented on Dec 19, 2021

      @zooba
      Member

      New changeset 0b582a4 by neonene in branch 'main':
      bpo-46123: Disable optimizations for _freeze_module.exe on MSVC for faster building (GH-30181)
      0b582a4

    4. 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

    No one assigned

      Labels

      3.11only security fixesOS-windowsbuildThe build process and cross-buildperformancePerformance or resource usage

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions