Re: Once and for all! Fastest way to load large jpeg
- From: jimbo@xxxxxxxxxx
- Date: 10 Dec 2006 09:44:17 -0800
<snip>
Any suggestions as to cacheing/using API calls/streams that could speed
up loading or am I pretty much utilizing what Delphi has to offer ?
Delphi is pretty close to the APIs
- a fairly lightweight wrapper
Streams of themselves would not help much, LoadFromFile is just
LoadFromStream with an added FileOpen and FileClose.
Caching would make quite a difference if you are continuously showing
the same images - it might be a bit memory heavy.
Can Delphi do this?
IME the really expensive thing about disk access is locating and
opening the File - if one can find a way of just having one open file,
partioned with a way of getting at individual 'records' then you
should get a massive jump in performance ( well I've always found so
in the past - but hardware is steadily improving ).
What does a TImageList do? I'm Delphi naive (6 months) but I got the
impression from the documentation that it does something like what
you've described but I'm scared to death of it. :(
I once wrote something like that, it stored 10,000 pages of HTML with
Images in just one file - even running from CD it was pretty snappy.
My program is a kiosk for viewing and ordering digital images and is
reading external drives so the program is always working from cd or usb
that's why the premium on loading large images. Cameras are producing
larger photos. Media can hold hundreds of photos. I have to display a
reasonable sized image for inspection so when the thumb is clicked I
load from the media.
You could do a bit of profiling, say pre-loading images into an array
of Strings and getting at them via a TStringStream.
Sorry you've lost me there. Can I preload a whole bunch of images that
way? Do you have a piece of code? Does it achieve the same thing as
cacheing? Thanks for staying with me. Sorry about all the questions.
I've searched for delphi + cache but everything was .net or internet
related.
Jim
.
- Follow-Ups:
- Re: Once and for all! Fastest way to load large jpeg
- From: J French
- Re: Once and for all! Fastest way to load large jpeg
- References:
- Once and for all! Fastest way to load large jpeg
- From: jimbo
- Re: Once and for all! Fastest way to load large jpeg
- From: J French
- Re: Once and for all! Fastest way to load large jpeg
- From: jimbo
- Re: Once and for all! Fastest way to load large jpeg
- From: J French
- Once and for all! Fastest way to load large jpeg
- Prev by Date: Re: Feature Warning Request: Possible loss of data
- Next by Date: Re: Once and for all! Fastest way to load large jpeg
- Previous by thread: Re: Once and for all! Fastest way to load large jpeg
- Next by thread: Re: Once and for all! Fastest way to load large jpeg
- Index(es):
Relevant Pages
|