Re: [Pypentago-devel] Embedding Images in Python files
Status: Pre-Alpha
Brought to you by:
segfaulthunter
From: Florian M. <flo...@ai...> - 2008-07-01 22:10:46
|
It will just save some CPU as it will not have to load the images from the file again and again for each square there is. Be sure to svn update your local copy as I made a lot of changes today, also to your files. I noticed you catch exceptions often and then return a string saying that it failed. It is much better to just catch the exception some where else where it can be handled better. Now login works fine. I hope you will continue work on the glicko2 module some time. Best regards, Florian Mayer J. Kovacs wrote: > Can it load the images into memory at program startup? > > Where is the performance gain? (at initial program startup, or during > gameplay?) > > > I think I prefer having the images in their own separate files. Seems > simpler and intuitive. (just my opinion. I haven't contributed much to > the project, so go ahead and do it however you want to!) > > Question: How is there a performance gain by embedding them into the > python script? Is it just saving a disk read at program startup time? > > Now if you can reduce the SIZE of the images in memory (resulting in > faster memory transfer and display) now there, I can see a greater > benefit. > > Sorry for my lack of presence on this project lately. Busy time of year > right now! > > Hope we will all have an IRC or jabber chat soon. > > Take care! > > > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Pypentago-devel mailing list > Pyp...@li... > https://lists.sourceforge.net/lists/listinfo/pypentago-devel |