ruby/prism
Benoit Daloze 53f0d3b1f7 [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
2024-07-25 11:39:05 +00:00
..
templates [ruby/prism] Do not serialize common flags when PRISM_SERIALIZE_ONLY_SEMANTICS_FIELDS is set 2024-07-25 11:39:05 +00:00
util [PRISM] Ensure not opening directories 2024-07-18 13:03:25 -04:00
api_pack.c [ruby/prism] Fix up minimal build setting 2024-03-25 11:54:20 -04:00
config.yml [ruby/prism] Implement mismatched indentation warning 2024-07-22 18:57:10 +00:00
defines.h [ruby/prism] Fix typos 2024-03-26 10:51:12 +00:00
encoding.c [ruby/prism] Provide options for reducing size 2024-03-20 17:32:03 -04:00
encoding.h [ruby/prism] Provide options for reducing size 2024-03-20 17:32:03 -04:00
extension.c [ruby/prism] Have parse_stream handle NUL bytes 2024-07-17 19:44:32 +00:00
extension.h [ruby/prism] Make sure Init_prism is visible for extension 2024-06-19 00:06:01 +00:00
node.h [ruby/prism] Remove various unused memsize infra 2024-05-24 17:19:34 +00:00
options.c [ruby/prism] Provide ability to lock encoding while parsing 2024-06-10 17:21:32 -04:00
options.h [ruby/prism] Provide ability to lock encoding while parsing 2024-06-10 17:21:32 -04:00
pack.c [ruby/prism] Provide options for reducing size 2024-03-20 17:32:03 -04:00
pack.h [ruby/prism] Fix up minimal build setting 2024-03-25 11:54:20 -04:00
parser.h [ruby/prism] Implement mismatched indentation warning 2024-07-22 18:57:10 +00:00
prettyprint.h [ruby/prism] Fix up minimal build setting 2024-03-25 11:54:20 -04:00
prism.c [ruby/prism] Inherit ractor state for child scopes 2024-07-24 16:24:21 +00:00
prism.h [ruby/prism] Remove error formatting, put directly in CRuby 2024-05-24 17:19:36 +00:00
regexp.c [ruby/prism] Properly support parsing regexp in extended mode 2024-07-01 14:42:10 +00:00
regexp.h [ruby/prism] Properly support parsing regexp in extended mode 2024-07-01 14:42:10 +00:00
static_literals.c [ruby/prism] Remove Debug::static_inspect 2024-05-24 17:19:33 +00:00
static_literals.h [ruby/prism] Remove Debug::static_inspect 2024-05-24 17:19:33 +00:00
version.h Sync prism version to latest 2024-06-07 15:54:06 -04:00