Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: How to improve request-file ?

From: ryanc:iesco-dms at: 23-Jan-2002 9:19

Petr Krenzelok wrote:
> Hmm, then maybe I was confused because of load/read time itself. I tried some > 700 > file directory on our network. Now it seems to me that 'foreach loop is only a > fraction of total dir load time .... thanks a lot ... >
Good point, I was really trying to test only the splitting portion. According to the following test, it is actually in the single millisecond range.
>> blk: read %.
== [%cgi-scan.r %REBOL.lnk %win.r %bin-clean.r %Factory Fire/ %xo/ %Internet Explorer.lnk %temp/ %Tune.sfa %tune.txt %user-list...
>> t: now/time loop 1000 [dir-split blk] now/time - t
== 0:00:01
> btw: I would welcome functions like split-dir (we have already split-path), clone > (deep copied objects, non shared sub-objects) becoming mezzanine level functions > default for everybody ... > > -pekr-
I would'nt mind seeing split-dir as part of file orientated module--whenever RT gets around to adding support for modules. I am also reluctant to add more functions to /Core. Take care, --Ryan