diff options
author | Benoit Daloze <[email protected]> | 2024-07-24 21:57:11 +0200 |
---|---|---|
committer | git <[email protected]> | 2024-07-25 11:39:05 +0000 |
commit | 53f0d3b1f7ee9d1f1068b44ef856c557177704a5 (patch) | |
tree | 4df4acb75157bad8409244c3468be5bb380a4ee1 /regexec.c | |
parent | 9cc2747ebbbe33315751873f8dc24b7c32c26ad0 (diff) |
[ruby/prism] Do not serialize common flags when PRISM_SERIALIZE_ONLY_SEMANTICS_FIELDS is set
* Note that we could shift the flags by 2 on serialize & deserialize
but it does not seems worth it as it does not save serialized size
in any significant amount, i.e. average was 0.799 before #2924.
* $ bundle exec rake serialized_size:topgems
Before:
Total sizes for top 100 gems:
total source size: 90207647
total serialized size: 69477115
total serialized/total source: 0.770
Stats of ratio serialized/source per file:
average: 0.844
median: 0.825
1st quartile: 0.597
3rd quartile: 1.064
min - max: 0.078 - 3.792
After:
Total sizes for top 100 gems:
total source size: 90207647
total serialized size: 66150209
total serialized/total source: 0.733
Stats of ratio serialized/source per file:
average: 0.800
median: 0.779
1st quartile: 0.568
3rd quartile: 1.007
min - max: 0.076 - 3.675
https://github.com/ruby/prism/commit/e012072f70
Diffstat (limited to 'regexec.c')
0 files changed, 0 insertions, 0 deletions