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

v: optimization improvements #22709

Merged
merged 12 commits into from
Oct 31, 2024
Merged

v: optimization improvements #22709

merged 12 commits into from
Oct 31, 2024

Conversation

felipensp
Copy link
Member

@felipensp felipensp commented Oct 31, 2024

This PR tries to identify points to optimize by checking gprof output by:

  • Reducing uneeded string__eq calls
  • Removing repeated typ.has_flag(.flag) calls
  • Reducing array_get calls where @[direct_array_access] can helps
  • Reducing alias_eq calls to numeric types (like ast.Type)
  • Reducing check for embed by adding is_embed flag to ast.StructDecl and ast.StructInitField

Huly®: V_0.6-21157

Copy link
Member

@spytheman spytheman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work.

@felipensp felipensp changed the title v: optimization fixes v: optimization improvements Oct 31, 2024
@felipensp felipensp marked this pull request as ready for review October 31, 2024 15:06
@spytheman spytheman merged commit ee4f29f into vlang:master Oct 31, 2024
78 checks passed
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

Successfully merging this pull request may close these issues.

2 participants