[ruby-cvs:71902] shirosaki:r64810 (trunk): dir.c: performance fix with braces

shirosaki at ruby-lang.org shirosaki at ruby-lang.org
Sat Sep 22 10:11:40 JST 2018


shirosaki	2018-09-22 10:11:40 +0900 (Sat, 22 Sep 2018)

  New Revision: 64810

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64810

  Log:
    dir.c: performance fix with braces
    
    Braces were expended before ruby_glob0(). This caused to call
    replace_real_basename() for same plain patterns repeatedly.
    Move blace expansion into glob_helper() in ruby_glob0() to reduce
    replace_real_basename() call.
    This fix changes the order of glob results.
    [Feature #13167] [Fix GH-1864]

  Modified files:
    trunk/dir.c


More information about the ruby-cvs mailing list