From: Daniel Berger Date: 2005-10-26T03:37:51+09:00 Subject: Re: Pathname#join is slow (Was: Re: [PATCH] Pathname.exists?()) Eric Hodel wrote: > On Oct 25, 2005, at 11:28 AM, TRANS wrote: > >> On 10/25/05, Gavin Sinclair wrote: >> >>> On 10/26/05, TRANS wrote: >>> >>>> path-join 0.990000 0.040000 1.030000 ( 1.128913) >>>> file-join 0.190000 0.010000 0.200000 ( 0.224484) >>> >>> >>> Would a good solution be to implement Pathname in C? >> >> >> That certainlu couldn't hurt, > > > No, it would hurt, writing it in C would make it more difficult to > understand and change by non-C rubyists. I was never under the impression that it was meant to be fast. Just useful. I originally started writing my own pathname class in C (for Windows), but it was a pain, especially when it came to anything iterative. Then there's all those delegated methods... I think I'd do some profiling and refactoring before I resorted to C. Regards, Dan