HJCached images cause lags in table view?

I would strongly urge you to see if they could get those images resized on the server. There is really no reason at all to download 300-450 px per dimension images if they are going to be sized down to fit in a table cell. If I had to make a guess as to the performance hit (and its only a guess), it would be that the scrolling performance hit is caused by finishing loading the image and trying to add it to the UIImageView by resizing it (probably have Aspect for Fill or something similar set?

).

Up vote 0 down vote favorite share g+ share fb share tw.

I am writing an application for a sushi bar. The menu hierarchy consisting of a table view (custom cell) ==> table view (custom cell) ==> view In the first Table View there is pictures of food categories (picture taken from the first dish in this category), in the second - pictures of dishes, in a description view - the same dish image, but in larger size. Pictures are downloaded asynchronously from the links (which are parsed from json menu) and cached by the library HJCache.

Everything works, everything is loaded, but .. When scrolling tableview there are some lags - I mean scrolling is not smooth. I thought that was memory leak, but found nothing. The original size of pictures - something about 450/300, in a custom table cell, it must fit in 120/80.

Can the program be slow and laggy because of too large size pictures? Ios uitableview uitableviewcell uiimageview lag link|improve this question edited Nov 22 '11 at 17:15Christopher Estep692514 asked Nov 22 '11 at 15:40Silentine1.

I would strongly urge you to see if they could get those images resized on the server. There is really no reason at all to download 300-450 px per dimension images if they are going to be sized down to fit in a table cell. If I had to make a guess as to the performance hit (and its only a guess), it would be that the scrolling performance hit is caused by finishing loading the image and trying to add it to the UIImageView by resizing it (probably have Aspect for Fill or something similar set?

). The short answer to your question: yes, its very likely the large images are the performance hit. Even if they are downloaded async, there is no reason to transfer more data than you need to.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions