Skip to content
  • Benoit Daloze's avatar
    53f0d3b1
    [ruby/prism] Do not serialize common flags when PRISM_SERIALIZE_ONLY_SEMANTICS_FIELDS is set · 53f0d3b1
    Benoit Daloze authored
    * 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
    53f0d3b1
    [ruby/prism] Do not serialize common flags when PRISM_SERIALIZE_ONLY_SEMANTICS_FIELDS is set
    Benoit Daloze authored
    * 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
Loading