diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-29 02:36:54 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-29 02:36:54 +0000 |
commit | 167358d00091069aac5874b38d04ef9ae20e1828 (patch) | |
tree | 7854aa9ab7893ec8ea578058c63a104f4094c6fa /ChangeLog | |
parent | 3783246a2ee835575a025c7225abadb756ad93f7 (diff) | |
download | ruby-167358d00091069aac5874b38d04ef9ae20e1828.tar.gz |
* include/ruby/st.h (struct st_table): add entries_packed 1-bit
bitfield. decrease num_bins 1-bit.
* st.c: pack numhash which have 5 or less entries in bins.
(st_init_table_with_size): setup entries_packed flag.
(st_clear): support packed mode.
(st_lookup): ditto.
(st_insert): ditto.
(st_add_direct): ditto.
(st_copy): ditto.
(st_delete): ditto.
(st_foreach): ditto.
(st_reverse_foreach): ditto.
(unpack_entries): new function for converting to unpacked mode.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -1,3 +1,20 @@ +Wed Aug 29 11:30:10 2007 Tanaka Akira <akr@fsij.org> + + * include/ruby/st.h (struct st_table): add entries_packed 1-bit + bitfield. decrease num_bins 1-bit. + + * st.c: pack numhash which have 5 or less entries in bins. + (st_init_table_with_size): setup entries_packed flag. + (st_clear): support packed mode. + (st_lookup): ditto. + (st_insert): ditto. + (st_add_direct): ditto. + (st_copy): ditto. + (st_delete): ditto. + (st_foreach): ditto. + (st_reverse_foreach): ditto. + (unpack_entries): new function for converting to unpacked mode. + Wed Aug 29 10:46:37 2007 Yukihiro Matsumoto <matz@ruby-lang.org> * include/ruby/defines.h (flush_register_windows): call "ta 0x03" |