Re: Once and for all! Fastest way to load large jpeg
- From: erewhon@xxxxxxxxxx (J French)
- Date: Sun, 10 Dec 2006 10:27:32 GMT
On 10 Dec 2006 00:55:59 -0800, jimbo@xxxxxxxxxx wrote:
Thanks to those who replied.
<snip>
I would scratch using the File size and use the Height and WidthYour right of course. I'll change that.
properties exposed by TJpegImage
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.
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 ).
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.
You could do a bit of profiling, say pre-loading images into an array
of Strings and getting at them via a TStringStream.
.
- Follow-Ups:
- 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
- Once and for all! Fastest way to load large jpeg
- Prev by Date: Re: Once and for all! Fastest way to load large jpeg
- Next by Date: Re: Manually adding range checking code ?
- 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
|