Re: new to Prima / Linux vs Windows question

From: Paul Archer <tigger_at_io.com>
Date: Fri, 30 Sep 2005 12:03:59 -0500 (CDT)
To: Prima mailing list <prima_at_prima.eu.org>

9:24am, Dmitry Karasik wrote:

> Hi Paul!
>
> On 29 Sep 05 at 21:06, "Paul" (Paul Archer) wrote:
>
> Paul> I'm just starting to try out Prima (in hopes of writing an image
> Paul> viewer/cataloger program). I was trying out the example program
> Paul> 'iv.pl' (image viewer) with a large file (8 megapixels) to get an
> Paul> idea of performance, and I noticed that it was significantly faster
> Paul> under linux (1-2 seconds to open and display) than under Windows
> Paul> (6-8 seconds). That's using the Windows binaries downloaded from the
> Paul> Prima homepage, and compiling from scratch on Linux.
>
> Paul> Is this normal behavior/performance for Prima on Windows?
>
>
> I'm afraid that it is, but I cannot explain that without further
> investigation.
>
> I assume that your 8Mpix image is a jpeg, in which case both linux
> and win32 codecs use the same libjpeg, and such difference might be
> attributed either to that libjpeg was compiled without optimizations on
> win32, or a particularly unlucky pattern on memory usage on win32.
> I'll try to recompile prigraph-win32 with optimization and see if that
> gives any difference, but as for the other possibility , I don't even
> know how to test it.
>
Hmm...I believe I used the Activestate Prima binary. I will try the cygwin
binary and see if there's a difference.

> As to recompiling Prima , I don't think that would matter, but you can try and
> see if it does make a difference. Rather, instead measuring it on iv.pl,
> try 'time perl -MPrima -e "Prima::Image->load(shift) or die $@" mypic.jpg'
>
I'll see what happens with the cygwin binary, and go from there.

> btw, on my 2.4GHz w2k box it takes 1.7 seconds on a 20Mpix image. I'd
> suggest to try it several times in arow, and if numbers go down, it might
> be that you windows box doesn't have enough memory, but that's just a wild
> guess.
>
20 megapixel? As in an image approximately 4000x5000 pixels? (Just checking,
there.) 1.7 seconds is pretty fast.
I was testing on a laptop with 512MB of memory. I was dual booting, so the
hardware shouldn't be affecting things (too much).

Thanks for the response--and thanks for Prima in the first place. I think
I'm going to enjoy using it.

Paul
Received on Fri 30 Sep 2005 - 19:04:04 CEST

This archive was generated by hypermail 2.2.0 : Sat 19 Mar 2011 - 18:35:06 CET