diff options
author | Hiroya Fujinami <make.just.on@gmail.com> | 2023-10-30 13:10:42 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-30 13:10:42 +0900 |
commit | 34cb174800e1e41323807c99386641b688927adc (patch) | |
tree | 62a1ac23fa566aff85a18042655bebbd2bd750ab /regint.h | |
parent | 13c9cbe09ef310c7ddf055d57ebf4586e9f9a111 (diff) | |
download | ruby-34cb174800e1e41323807c99386641b688927adc.tar.gz |
Optimize regexp matching for look-around and atomic groups (#7931)
Diffstat (limited to 'regint.h')
-rw-r--r-- | regint.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -873,6 +873,12 @@ typedef struct _OnigStackType { UChar *abs_pstr; /* absent start position */ const UChar *end_pstr; /* end position */ } absent_pos; +#ifdef USE_MATCH_CACHE + struct { + long index; /* index of the match cache buffer */ + uint8_t mask; /* bit-mask for the match cache buffer */ + } match_cache_point; +#endif } u; } OnigStackType; @@ -883,6 +889,8 @@ typedef struct { int outer_repeat_mem; long num_cache_points_at_outer_repeat; long num_cache_points_in_outer_repeat; + int lookaround_nesting; + UChar *match_addr; } OnigCacheOpcode; #endif |