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

transformer: optimise calls to write string with simple interpolations #22188

Conversation

spytheman
Copy link
Member

  • transformer: add support for instrumenting the V compiler with -d trace_transformer
  • transformer: optimise out simple string interpolations inside sb.write_string/1 calls

@spytheman spytheman changed the title transformer optimise calls to write string with simple interpolations transformer: optimise calls to write string with simple interpolations Sep 9, 2024
@spytheman spytheman marked this pull request as draft September 10, 2024 00:52
@spytheman spytheman force-pushed the transformer_optimise_calls_to_write_string_with_simple_interpolations branch from cde443d to 46e5ffe Compare September 27, 2024 10:19
@spytheman
Copy link
Member Author

(rebased over current master)

@spytheman spytheman force-pushed the transformer_optimise_calls_to_write_string_with_simple_interpolations branch from 46e5ffe to 238d565 Compare October 9, 2024 12:59
@spytheman
Copy link
Member Author

Comparison with current master, for compiling the V compiler to a .c file:
image

@spytheman spytheman marked this pull request as ready for review October 9, 2024 15:01
@spytheman spytheman merged commit 3e6fc36 into vlang:master Oct 9, 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.

1 participant