[squeak-dev] Re: large file support regression

Eliot Miranda eliot.miranda at gmail.com
Thu Sep 4 22:53:32 UTC 2014


On linux?  What's the failure mode in your snippet?  The position:
primitive fails?


On Thu, Sep 4, 2014 at 3:36 PM, Chris Muller <asqueaker at gmail.com> wrote:

> Hi Eliot, it looks like any attempt to position a file beyond some
> threshold is causing the primitive failure in Cog VM's released after
> 2776 that I'm seeing.
>
> | file | file:=StandardFileStream newFileNamed: 'mybigfile'.  file binary.
> [1234 timesRepeat: [ file nextPutAll: (ByteArray new: 1 million) ].
> file position: file size - 100 ]
>     ensure: [file close].
>
> Magma uses a random file position for every single object retrieved;
> so the performance of primitiveFileSetPosition is crucial to the
> performance of Magma.
>
> Thanks.
>



-- 
best,
Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20140904/d5211d6b/attachment.htm


More information about the Squeak-dev mailing list