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

Chore: Refactor large-if/match: Extract array out of them #969

Open
NobodyXu opened this issue Feb 24, 2024 · 0 comments
Open

Chore: Refactor large-if/match: Extract array out of them #969

NobodyXu opened this issue Feb 24, 2024 · 0 comments

Comments

@NobodyXu
Copy link
Collaborator

Currently there're a few huge if/match block for targets cc supports.

Having large if/match is hard to read, it also increases compilation time/binary size generated.

By extracting them out as an array, it would be simpler to read, edit, and faster to compile with smaller binary size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant