[#39845] Re: [ruby-cvs:33238] Ruby:r26022 (trunk): * marshal.c (w_object): dump instance variables when using — Tanaka Akira <akr@...>
2009/12/5 <nobu@ruby-lang.org>:
3 messages
2009/12/06
[#39846] [Bug #2447] reduce GC pressure by symbol table without String instance — Yusuke Endoh <redmine@...>
Bug #2447: reduce GC pressure by symbol table without String instance
5 messages
2009/12/06
[#39847] stable find.rb — Tanaka Akira <akr@...>
ディレクトリを再帰的にたどった結果を比較することがあったのですが、
5 messages
2009/12/06
[#39851] Time.now + str と #to_r — Yukihiro Matsumoto <matz@...>
まつもと ゆきひろです
9 messages
2009/12/07
[#39852] Re: Time.now + str と #to_r
— "NARUSE, Yui" <naruse@...>
2009/12/07
成瀬です。
[#39855] [RubySpec #2460] RubySpecでFiberのSpecがおちる — 三村 益隆 <redmine@...>
RubySpec #2460: RubySpecでFiberのSpecがおちる
4 messages
2009/12/08
[#39863] [Feature #2471] want to choose a GC algorithm — _ wanabe <redmine@...>
Feature #2471: want to choose a GC algorithm
8 messages
2009/12/09
[#39874] faster Enumerator#each by rb_block_call with current block — Yusuke ENDOH <mame@...>
遠藤です。
7 messages
2009/12/13
[#39894] Re: faster Enumerator#each by rb_block_call with current block
— Yukihiro Matsumoto <matz@...>
2009/12/19
まつもと ゆきひろです
[#39897] Re: faster Enumerator#each by rb_block_call with current block
— Yusuke ENDOH <mame@...>
2009/12/20
遠藤です。
[#39912] [Bug #2522] Segmentation Fault is occurred on r26158 by running rubyspec — Kenta Murata <redmine@...>
Bug #2522: Segmentation Fault is occurred on r26158 by running rubyspec
4 messages
2009/12/23
[ruby-dev:39886] Re: stable find.rb
From:
Takahiro Kambe <taca@...>
Date:
2009-12-16 00:33:18 UTC
List:
ruby-dev #39886
おはようございます。 In message <49c17ca70912060647l2d6f2bd4s14f4fd7f17fc43b2@mail.gmail.com> on Sun, 6 Dec 2009 23:47:35 +0900, Tanaka Akira <akr@fsij.org> wrote: > ディレクトリを再帰的にたどった結果を比較することがあったのですが、 > find.rb を使うと、yield されるファイル名の順序が readdir の挙動に依存して > 不定なために使えなくて残念な思いをしました。 > > readdir が返す順に yield しなければならないという理由はないと思うので、 > ディレクトリ内のファイルを sort してやるというのはどうでしょう? 敢えて理屈を付けるとすれば、 1. そのままの状態(ls -f相当)が欲しい。 2. なるべく返す順にディレクトリ・ツリーをコピーしたい。 3. 改めてlocaleに依存した方法でソートしたいので無駄になる。 4. 非常に多量な数のファイルがあった場合に、不要なソートの処理で性能の 低下が起きそう。 と、いったあたりでしょうか。(それぞれ、完全に独立した内容ではありま せんが。) ソートするかどうか指定する、何らかの方法が用意されていた方が良さそうに 思えます。 -- 神戸 隆博(かんべ たかひろ) at 仕事場