diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-19 08:25:03 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-19 08:25:03 +0000 |
| commit | 7ea0a46e32a1dba0e16b79ce42dbf7d9c5b8d7fb (patch) | |
| tree | 357c92a92120e9e79054dbc58171b956e3d37e7f /ChangeLog | |
| parent | 5818eb55f94bcf4cecb4d6c649eacba398d01fc9 (diff) | |
| download | ruby-7ea0a46e32a1dba0e16b79ce42dbf7d9c5b8d7fb.tar.gz ruby-7ea0a46e32a1dba0e16b79ce42dbf7d9c5b8d7fb.tar.xz ruby-7ea0a46e32a1dba0e16b79ce42dbf7d9c5b8d7fb.zip | |
* regparse.c (PINC): use optimized enclen() instead of
ONIGENC_MBC_ENC_LEN().
* regparse.c (PFETCH): ditto.
* regparse.c (PFETCH): small optimization.
* regexec.c (slow_search): single byte encoding optimization.
* regenc.h (enclen): avoid calling function when encoding's
min_len == max_len.
* re.c (rb_reg_regsub): rb_enc_ascget() optimization for single
byte encoding.
* re.c (rb_reg_search): avoid allocating new re_registers if we
already have MatchData.
* re.c (match_init_copy): avoid unnecessary onig_region_free()
before onig_region_copy.
* encoding.c (rb_enc_get_index): remove implicit enc_capable check
each time.
* encoding.c (rb_enc_set_index): ditto.
* encoding.c (enc_compatible_p): small refactoring.
* include/ruby/encoding.h (rb_enc_dummy_p): inline
rb_enc_dummy_p() and export related code.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
| -rw-r--r-- | ChangeLog | 33 |
1 files changed, 33 insertions, 0 deletions
@@ -1,3 +1,36 @@ +Mon May 19 17:23:55 2008 Yukihiro Matsumoto <matz@ruby-lang.org> + + * regparse.c (PINC): use optimized enclen() instead of + ONIGENC_MBC_ENC_LEN(). + + * regparse.c (PFETCH): ditto. + + * regparse.c (PFETCH): small optimization. + + * regexec.c (slow_search): single byte encoding optimization. + + * regenc.h (enclen): avoid calling function when encoding's + min_len == max_len. + + * re.c (rb_reg_regsub): rb_enc_ascget() optimization for single + byte encoding. + + * re.c (rb_reg_search): avoid allocating new re_registers if we + already have MatchData. + + * re.c (match_init_copy): avoid unnecessary onig_region_free() + before onig_region_copy. + + * encoding.c (rb_enc_get_index): remove implicit enc_capable check + each time. + + * encoding.c (rb_enc_set_index): ditto. + + * encoding.c (enc_compatible_p): small refactoring. + + * include/ruby/encoding.h (rb_enc_dummy_p): inline + rb_enc_dummy_p() and export related code. + Mon May 19 14:32:03 2008 Koichi Sasada <ko1@atdot.net> * version.h: fix strange change by version.h update tool. |
