[前][次][番号順一覧][スレッド一覧][生データ]

ruby-cvs:23717

From: matz ruby-lang.org
Date: Mon, 19 May 2008 17:25:05 +0900 (JST)
Subject: [ruby-cvs:23717] Ruby:r16477 (trunk): * regparse.c (PINC): use optimized enclen() instead of

matz	2008-05-19 17:25:03 +0900 (Mon, 19 May 2008)

  New Revision: 16477

  Modified files:
    trunk/ChangeLog
    trunk/common.mk
    trunk/encoding.c
    trunk/include/ruby/encoding.h
    trunk/re.c
    trunk/regenc.h
    trunk/regexec.c
    trunk/regparse.c
    trunk/string.c

  Log:
    * 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.

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/string.c?r1=16477&r2=16476&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/regexec.c?r1=16477&r2=16476&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=16477&r2=16476&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/include/ruby/encoding.h?r1=16477&r2=16476&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/re.c?r1=16477&r2=16476&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/encoding.c?r1=16477&r2=16476&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/regparse.c?r1=16477&r2=16476&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/regenc.h?r1=16477&r2=16476&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/common.mk?r1=16477&r2=16476&diff_format=u


[前][次][番号順一覧][スレッド一覧][生データ]