Login  Register

Re: Creation form from PNG file very slow on Pharo 4 and 5

Posted by kilon.alios on Jan 16, 2016; 2:09pm
URL: https://forum.world.st/Creation-form-from-PNG-file-very-slow-on-Pharo-4-and-5-tp4871776p4871823.html

Images are needed on startup when the project is updated which means any of the image files could change.

Its a big problem for me , I can preload everything, save it to an image and distribute the image instead with zero delays. I dont care if this is going to be improved or not , since I can work around this limitation.

I was merely reporting the creating forms from pngs is too slow.

On Sat, Jan 16, 2016 at 4:07 PM Denis Kudriashov <[hidden email]> wrote:

Hi.

I am not understand why you need to load images on startup? Why you not save pharo image with preloaded png files?
With that case you will get immediate startup with ready to use forms.

Best regards,
Denis

16 янв. 2016 г. 14:50 пользователь "Dimitris Chloupis" <[hidden email]> написал:

sorry but thats plain horrible performance wise and those images are needed as soon as the gui is opened. So there can be no lazy loading for them. The total size for all the 60 images is 530kbs . What would happen if I did some serious animations of 10s of mbs , I will have to go to buy a coffee to get my GUI opened :D

On Sat, Jan 16, 2016 at 3:41 PM Nicolai Hess <[hidden email]> wrote:


2016-01-16 13:50 GMT+01:00 Dimitris Chloupis <[hidden email]>:
Seems that creating forms and morph from pngs is super slow

opened bug report

https://pharo.fogbugz.com/f/cases/17403/Creating-Forms-from-PNGs-is-very-slow


your are loading 0-59 images in one turn. this takes ~ 1000 ms. Thats not bad.

How about loading them only on demand? This may cut down the start up time:

attache a small change for get and put the images into a dictionary and only load new
"xx seconds-image" when it is used for the  first time.

- > [ChronosManager open] timeToRun
 "0:00:00:00.626"