Permalink
Browse files

Use the UIImage cache on the gridview

  • Loading branch information...
1 parent 9e5a68a commit 9184dbb231e94e8f349342c3fc83079554055d74 Romain Goyet committed Sep 26, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 Classes/MVLCMovieGridViewCell.m
@@ -192,7 +192,7 @@ - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)butto
@implementation MVLCMovieGridViewCell (Private)
+ (UIImage *)imageFromFile:(MLFile *)file {
#define MVLC_MOVIE_GRID_IMAGE_CACHE_SIZE 32
-#if MVLC_MOVIE_GRID_USE_IMAGE_CACHE > 0
+#if MVLC_MOVIE_GRID_IMAGE_CACHE_SIZE > 0
// This does UIImage caching as it appears that loading the PNG files is what slows down the app (up to 75% CPU in ImageIO/libz)
static NSMutableDictionary * sImageCache = nil;
static NSMutableArray * sImageCacheExpirationQueue = nil;

0 comments on commit 9184dbb

Please sign in to comment.