summaryrefslogtreecommitdiff
path: root/lib/rubygems/commands/outdated_command.rb
diff options
context:
space:
mode:
authorJohn Hawthorn <john@hawthorn.email>2022-08-15 16:14:12 -0700
committerGitHub <noreply@github.com>2022-08-15 16:14:12 -0700
commit0608a9a08693286a7d84845a216927ff2e3c9951 (patch)
treeb3b0f619edd8f90cbfac7c75e5199a2ce141f1c7 /lib/rubygems/commands/outdated_command.rb
parente49db0f760722bf44ed2c5b31f67d929e9156dbe (diff)
Optimize Marshal dump/load for large (> 31-bit) FIXNUM (#6229)HEADmaster
* Optimize Marshal dump of large fixnum Marshal's FIXNUM type only supports 31-bit fixnums, so on 64-bit platforms the 63-bit fixnums need to be represented in Marshal's BIGNUM. Previously this was done by converting to a bugnum and serializing the bignum object. This commit avoids allocating the intermediate bignum object, instead outputting the T_FIXNUM directly to a Marshal bignum. This maintains the same representation as the previous implementation, including not using LINKs for these large fixnums (an artifact of the previous implementation always allocating a new BIGNUM). This commit also avoids unnecessary st_lookups on immediate values, which we know will not be in that table. * Fastpath for loading FIXNUM from Marshal bignum * Run update-deps
Notes
Notes: Merged-By: jhawthorn <john@hawthorn.email>
Diffstat (limited to 'lib/rubygems/commands/outdated_command.rb')
0 files changed, 0 insertions, 0 deletions