Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a switch in ProcStatement() #2073

Merged
merged 3 commits into from
Nov 16, 2024
Merged

Conversation

ike709
Copy link
Collaborator

@ike709 ike709 commented Nov 1, 2024

Doesn't really impact compiletime either way, but it means we no longer have to worry about the order we're parsing proc statements.

@boring-cyborg boring-cyborg bot added the Compiler Involves the OpenDream compiler label Nov 1, 2024
DMCompiler/Compiler/DM/DMParser.cs Dismissed Show dismissed Hide dismissed
DMCompiler/Compiler/DM/DMParser.cs Dismissed Show dismissed Hide dismissed
@wixoaGit
Copy link
Member

Doesn't really impact compiletime either way, but it means we no longer have to worry about the order we're parsing proc statements.

Did we ever have to worry about it if it doesn't impact compile time?

@ike709
Copy link
Collaborator Author

ike709 commented Nov 13, 2024

Did we ever have to worry about it if it doesn't impact compile time?

The order of proc statement parsing in the original code did have a measurable impact on compile time (at least back when I first rearranged them based on frequency, dunno about current year).

DMCompiler/Compiler/DM/DMParser.cs Outdated Show resolved Hide resolved
@wixoaGit wixoaGit merged commit f941c9d into OpenDreamProject:master Nov 16, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compiler Involves the OpenDream compiler size/XL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants