Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
memory management
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
ivano.malavolta  
View profile  
 More options Dec 1 2011, 6:13 pm
From: "ivano.malavolta" <ivanomalavo...@gmail.com>
Date: Thu, 1 Dec 2011 15:13:59 -0800 (PST)
Local: Thurs, Dec 1 2011 6:13 pm
Subject: memory management
Hi all,
I am working on an app in which I need to manage a gallery of 150
large-sized images.

I would like to reuse the ImageExample of Leaves, but I am afraid that
with such a high
number of large-sized images I will have big memory problems, can you
confirm me that?
Or, in Leaves memory is managed somewhere else within the framework?

Cheers,
    Ivano


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ryan Duckworth  
View profile  
 More options Dec 1 2011, 8:33 pm
From: Ryan Duckworth <ryan.duckwo...@gmail.com>
Date: Thu, 1 Dec 2011 19:33:50 -0600
Local: Thurs, Dec 1 2011 8:33 pm
Subject: Re: memory management
Ivano,

Leaves cache only holds 3 in memory:
- previous
- current
- next

Please let me know if you need help with your project.

Best,
Ryan

Sent from my iPhone

On Dec 1, 2011, at 5:13 PM, "ivano.malavolta" <ivanomalavo...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ivano Malavolta  
View profile  
 More options Dec 2 2011, 3:37 am
From: Ivano Malavolta <ivanomalavo...@gmail.com>
Date: Fri, 2 Dec 2011 09:37:27 +0100
Local: Fri, Dec 2 2011 3:37 am
Subject: Re: memory management
Hi Ryan,
thanks very much for the quick reply.
The problem is that in the example file:

https://github.com/shuhongwu/leaves-zoom-enhanced/blob/master/Classes...

I see this:

- (id)init {
    if (self = [super init]) {
                images = [[NSArray alloc] initWithObjects:
                                  [UIImage imageNamed:@"kitten.jpg"],
                                  [UIImage imageNamed:@"kitten2.jpg"],
                                  [UIImage imageNamed:@"kitten3.jpg"],
                                  nil];
    }
    return self;

}

And I got quite scared of the various imageNamed calls!
My scenario is that I have 150 jpg images to show (I got them from a PDF),
each image is around 1 Mb.

Do you have any suggestions on how I could proceed from here?
At the moment, I am thinking to develop by myself a scrollview with
zoom and paging,
in which I can load and dealloc the images when needed...

Cheers,
    Ivano

2011/12/2 Ryan Duckworth <ryan.duckwo...@gmail.com>:

--
-----

Ivano Malavolta, PhD student
Department of Computer Science
University of L'Aquila
phone: +390862433734  skype: iivanoo
web: http://www.di.univaq.it/malavolta


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »