cgen: reduce write calls (string_builder + gen.c)#22610
cgen: reduce write calls (string_builder + gen.c)#22610spytheman merged 13 commits intovlang:masterfrom
Conversation
|
The standard deviations (σ) in the above screenshot are very big, relative to the measured change. The measurements are not reliable, when that happens. Can you redo them, on a machine, that is quiet, without other background tasks, so that the σ can be lower? Another way would be to run |
Not a good machine for that. hehe But I'll try get better results. Thanks for the advices. |
|
@spytheman did you manage to get reliable stats? Old code is more readable. |
@medvednikov, yes, the results from a more quiet machine are below. The TLDR is that they are inconclusive - the performance effect is not consistently positive. It however reduced the generated C code for V itself with (6052 - 6047) = 5KB, so I decided to merge it. |
I agree. |
This PR aims to reduce calls to
g.writeln(),g.write(),sb.write_string(),sb.writeln().Huly®: V_0.6-21059