I did a one line tweak to Yura's array optimization `174.patch` from his feature request at
https://bugs.ruby-lang.org/issues/6638#note-7to get it to apply to trunk@r37463. The tweaked patch is at
https://gist.github.com/4009735C:\Jenkins\workspace\ruby-trunk-svn>svn log -l 1
------------------------------------------------------------------------
r37463 | nobu | 2012-11-03 21:19:11 -0400 (Sat, 03 Nov 2012) | 5 lines
dir.c: FNM_EXTGLOB
* dir.c (file_s_fnmatch): match with expanding braces if FNM_EXTGLOB
is set. [ruby-core:40037] [Feature #5422]
------------------------------------------------------------------------
C:\Jenkins\workspace\ruby-trunk-svn>git apply --check --verbose array_as_queue_trunk.patch
Checking patch array.c...
Hunk #2 succeeded at 447 (offset -2 lines).
Hunk #3 succeeded at 2179 (offset -2 lines).
Hunk #4 succeeded at 2202 (offset -2 lines).
Hunk #5 succeeded at 2217 (offset -2 lines).
Checking patch array.c...
Hunk #2 succeeded at 770 (offset -2 lines).
Hunk #3 succeeded at 786 (offset -2 lines).
Hunk #4 succeeded at 810 (offset -2 lines).
Checking patch array.c...
Hunk #1 succeeded at 1372 (offset -2 lines).
Hunk #2 succeeded at 1387 (offset -2 lines).
Checking patch array.c...
Hunk #1 succeeded at 968 (offset -2 lines).
Hunk #2 succeeded at 1032 (offset -2 lines).
C:\Jenkins\workspace\ruby-trunk-svn>echo %errorlevel%
0
Anyone have the time and/or interest for testing this patch against trunk via `make test` and `make test-all` on Windows and Linux and giving nobu and mame feedback? Any real-world array-as-queue code to benchmark the patch against and show ruby-core the results?
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/48829Jon