Skip to content

Compile time regression(?) #1610

Closed

Description

@IvanInventor

Godot version

godot-cpp version

2ffff66

System information

Arch Linux

Issue description

Commit introduces ~X3 compilation time.

Steps to reproduce

Bisected from master, benchmarked with

time scons

command

Approximate compile time of good commit

real	5m4.576s
user	44m50.995s
sys	1m48.742s

bad commit

real	15m37.927s
user	145m58.519s
sys	3m25.119s

Minimal reproduction project

godot-cpp repo

Activity

  1. added
    topic:buildsystem
    on Sep 27, 2024
  2. added this to the 4.x milestone on Sep 27, 2024
  3. dsnopek commented on Sep 27, 2024

    @dsnopek
    Collaborator

    My machine appears to be much faster than yours, however, I am still able to reproduce this in my testing.

    I tried with these commands:

    scons -c
    time scons
    

    On 730ccaa (the commit before PR #1162):

    real    0m35.237s
    user    13m15.284s
    sys     2m19.489s
    

    On 96565e1 (current master):

    real    1m55.579s
    user    51m56.977s
    sys     3m50.841s
    

    My guess is that this is from the changes to type_info.hpp which ends up getting included everywhere. I'm not sure how to improve this...

    cc @Repiteo

  4. added
    bug
    on Sep 27, 2024
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

    bugtopic:buildsystem

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions