Hi Matteo,
On 5 Nov 2016, at 16:11, Matteo via Pharo-users <pharo-users@lists.pharo.org> wrote:
From: Matteo <matteob8@yahoo.it> Subject: Speed up JPG images loading Date: 5 November 2016 at 16:10:45 GMT+1 To: "Pharo is welcome (ML)" <pharo-users@lists.pharo.org>
Dears, I'm loading a lot of pictures (70) through the method "ImageReadWriter>>formFromFileNamed:". The method is very slow, with images bigger than 5MB.
Is there a way to improve the pictures speed loading?
Thanks Matteo
I think we'll need more details. Here is what I tried: (ImageReadWriter formFromFileNamed: '/Users/sven/Desktop/audio359-main-1600.jpg') asMorph openInWindow. This is a 319K JPG 1600x2263 (Form's Bitmap length is 3620800). [ ImageReadWriter formFromFileNamed: '/Users/sven/Desktop/audio359-main-1600.jpg' ] bench. '2.788 per second' 2 to 3 per second is not very fast, but you create forms of 3.5M - In this case the PluginBasedJPEGReadWriter is used, which should be faster then any of the other formats. What you can do is store a FUEL version of the Form on file, that will be (much) faster (but much larger, it is basically a non-compressed version). Sven