Skip to content

Conversation

@rmosolgo
Copy link
Owner

@rmosolgo rmosolgo commented Jan 8, 2026

I extracted this from #5491 because it's where the memory savings come from:

  $ be rake bench:profile_boot 
  # ...
- Total allocated: 8242456 bytes (51658 objects)
+ Total allocated: 7774256 bytes (46977 objects)

(I think the savings comes from Hashes allocated during the intermediary method, so savings for a given app will depend on how many field(...) calls there are.)

@rmosolgo rmosolgo added this to the 2.5.17 milestone Jan 8, 2026
@rmosolgo rmosolgo changed the title Remove Field.from_options Remove Field.from_options to reduce memory usage Jan 8, 2026
@rmosolgo rmosolgo merged commit d43936b into master Jan 8, 2026
13 checks passed
@rmosolgo rmosolgo deleted the reduce-field-definition-memory branch January 8, 2026 12:34
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.

2 participants