diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-03 08:27:43 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-03 08:27:43 +0000 |
commit | 384e8e668065f975487665e99a11434c99348c4f (patch) | |
tree | eb1572f2a7cb2bc2f26ebdcea70bc260812bfcdb /test | |
parent | bbc2f80a32b52b79586829e46ec97781456f9080 (diff) | |
download | ruby-384e8e668065f975487665e99a11434c99348c4f.tar.gz |
* gc.c (add_heap): sort heaps array in ascending order to use
binary search.
* gc.c (is_pointer_to_heap): use binary search to identify object
in heaps. works better when number of heap segments grow big.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions