diff options
author | Nobuyoshi Nakada <[email protected]> | 2022-03-25 20:29:09 +0900 |
---|---|---|
committer | <[email protected]> | 2022-03-25 20:29:09 +0900 |
commit | 69967ee64eac9ce65b83533a566d69d12a6046d0 () | |
tree | b7012ba8b7ad5b1c99d7b1f9b2345ecd8117f433 /benchmark/constant_invalidation.rb | |
parent | 7ee26740e41f99d3da37df36b956237fbf36868e (diff) |
Revert "Finer-grained inline constant cache invalidation"
This reverts commits for [Feature #18589]: * 8008fb7352abc6fba433b99bf20763cf0d4adb38 "Update formatting per feedback" * 8f6eaca2e19828e92ecdb28b0fe693d606a03f96 "Delete ID from constant cache table if it becomes empty on ISEQ free" * 629908586b4bead1103267652f8b96b1083573a8 "Finer-grained inline constant cache invalidation" MSWin builds on AppVeyor have been crashing since the merger.
Notes: Merged: https://.com/ruby/ruby/pull/5715 Merged-By: nobu <[email protected]>
-rw-r--r-- | benchmark/constant_invalidation.rb | 22 |
1 files changed, 0 insertions, 22 deletions
@@ -1,22 +0,0 @@ -$VERBOSE = nil - -CONSTANT1 = 1 -CONSTANT2 = 1 -CONSTANT3 = 1 -CONSTANT4 = 1 -CONSTANT5 = 1 - -def constants - [CONSTANT1, CONSTANT2, CONSTANT3, CONSTANT4, CONSTANT5] -end - -500_000.times do - constants - - # With previous behavior, this would cause all of the constant caches - # associated with the constant lookups listed above to invalidate, meaning - # they would all have to be fetched again. With current behavior, it only - # invalidates when a name matches, so the following constant set shouldn't - # impact the constant lookups listed above. - INVALIDATE = true -end |