mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* include/ruby/st.h (struct st_table): make num_entries bitfield
instead of num_bins for speed. num_entries has less access. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
96c859834e
commit
15c8e4618b
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Sun Sep 2 23:38:29 2007 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* include/ruby/st.h (struct st_table): make num_entries bitfield
|
||||||
|
instead of num_bins for speed. num_entries has less access.
|
||||||
|
|
||||||
Sun Sep 2 00:37:57 2007 Tadayoshi Funaba <tadf@dotrb.org>
|
Sun Sep 2 00:37:57 2007 Tadayoshi Funaba <tadf@dotrb.org>
|
||||||
|
|
||||||
* lib/date/format.rb (_parse): improved parsing of ordinal dates.
|
* lib/date/format.rb (_parse): improved parsing of ordinal dates.
|
||||||
|
|
|
@ -54,9 +54,9 @@ typedef st_data_t st_index_t;
|
||||||
|
|
||||||
struct st_table {
|
struct st_table {
|
||||||
const struct st_hash_type *type;
|
const struct st_hash_type *type;
|
||||||
|
st_index_t num_bins;
|
||||||
unsigned int entries_packed : 1;
|
unsigned int entries_packed : 1;
|
||||||
st_index_t num_bins : ST_INDEX_BITS - 1;
|
st_index_t num_entries : ST_INDEX_BITS - 1;
|
||||||
st_index_t num_entries;
|
|
||||||
struct st_table_entry **bins;
|
struct st_table_entry **bins;
|
||||||
struct st_table_entry *head;
|
struct st_table_entry *head;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue