mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
re_pattern_buffer: shrink from 464 to 448 bytes on 64-bit
* include/ruby/oniguruma.h (struct re_pattern_buffer): shrink to 448 bytes from 464 bytes on 64-bit. This breaks the ABI. [Feature #10034] Reducing struct re_pattern_buffer from 464 to 448 bytes allows it to fit into neatly into seven 64-byte cache lines on x86-64 systems. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fcf0801518
commit
f36315a519
2 changed files with 10 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
Sun Jul 20 12:36:46 2014 Eric Wong <e@80x24.org>
|
||||
|
||||
* include/ruby/oniguruma.h (struct re_pattern_buffer): shrink to 448
|
||||
bytes from 464 bytes on 64-bit. This breaks the ABI.
|
||||
[Feature #10034]
|
||||
|
||||
Sun Jul 20 01:06:06 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||
|
||||
* ext/openssl/ossl.c: use encryptor instead of encrypter in doc.
|
||||
|
|
|
@ -674,13 +674,15 @@ typedef struct re_pattern_buffer {
|
|||
unsigned int bt_mem_end; /* need backtrack flag */
|
||||
int stack_pop_level;
|
||||
int repeat_range_alloc;
|
||||
|
||||
OnigOptionType options;
|
||||
|
||||
OnigRepeatRange* repeat_range;
|
||||
|
||||
OnigEncoding enc;
|
||||
OnigOptionType options;
|
||||
const OnigSyntaxType* syntax;
|
||||
OnigCaseFoldType case_fold_flag;
|
||||
void* name_table;
|
||||
OnigCaseFoldType case_fold_flag;
|
||||
|
||||
/* optimization info (string search, char-map and anchors) */
|
||||
int optimize; /* optimize flag */
|
||||
|
|
Loading…
Add table
Reference in a new issue