-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorfrontendTokenization, parsing, AstGen, Sema, and Liveness.Tokenization, parsing, AstGen, Sema, and Liveness.optimization
Milestone
Description
Zig Version
0.10.0-dev.3659+e5e6eb983
Steps to Reproduce
Extract https://0x0.st/o9zs.tar.xz into a subdirectory.
Build the attached project with stage1, and then with stage2/3, with the command zig build -Drelease-fast. Run each executable, and enter the command go depth 7. The number after nps indicates the speed of the program in nodes per second.
Expected Behavior
The values for nps would be roughly equal, or stage2/3 would produce a faster executable.
Actual Behavior
Stage2/3 produces an executable approximately 10x slower than stage1 does.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorfrontendTokenization, parsing, AstGen, Sema, and Liveness.Tokenization, parsing, AstGen, Sema, and Liveness.optimization