[Pharo-project] readOnlyFileNamed:do: vs. ...

Henrik Johansen henrik.s.johansen at veloxit.no
Tue Feb 2 07:32:49 EST 2010



Den 02.02.2010 13:14, skrev Henrik Johansen:
> For information:
> (1 to: 3) collect: [:h | [CompiledMethod allInstancesDo: [:each | each
> getSourceFromFile]] timeToRun]
>
> Standard way, which both registers in the FileRegistry, and does close
> at end of getSourceFromFile:
> #(13348 12786 12712)
>
> Explicit closing with readOnlyFileNamed:do:
>  #(12091 12061 12189) 
>   
Blargh, numbers were without nextChunk update.

With latest version, the differences are:

Standard way, which both registers in the FileRegistry, and does close
at end of getSourceFromFile:
#(7697 7684 7694)

Explicit closing with readOnlyFileNamed:do:
 #(6586 6597 6594)

Cheers,
Henry






More information about the Pharo-dev mailing list