-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Open
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfperformancescript modeFlag: Specific to script mode compilationFlag: Specific to script mode compilationunexpected behaviorBug: Unexpected behavior or incorrect outputBug: Unexpected behavior or incorrect output
Description
Description
Since the number of lines in a file increases, the compilation time per line of code also increases, I suggest reducing the number of lines of code in the files and breaking them into smaller ones.
Here is an example of a build with a timing summary (M1 Pro):

it takes too much time to build some parts.
This is the result of one benchmark, showing the dependence of compilation time per line of code depending on the number of lines in the Swift file:
Metadata
Metadata
Assignees
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler itselfThe Swift compiler itselfperformancescript modeFlag: Specific to script mode compilationFlag: Specific to script mode compilationunexpected behaviorBug: Unexpected behavior or incorrect outputBug: Unexpected behavior or incorrect output