JPEG Image retrieval
JPEG Image retrieval
- Subject: JPEG Image retrieval
- From: Kyle Mandli <email@hidden>
- Date: Mon, 20 Aug 2001 11:35:58 -0500
I have a program that accesses a relatively large number of JPEG images
(sometime up to 60,000.) It then steps through them like a slide show
except that I want it to play through it as fast as possible. I have
optimized the drawing as much as possible and now using Sampler I found
that the big bottle neck now is actually retrieving the file from the
file system.
Does anyone know a faster way to do this than the below? I have thought
about buffering the images but the user needs to be able to jump around
quite a bit and that would slow down the app more than help it.
Thanks in advance.
-(void)openImage
{
NSImage *newImage = [[NSImage alloc] init];
[imageView setImage:[newImage initWithContentsOfFile:path]];
}
Kyle