Optimising an app for battery power use?
Optimising an app for battery power use?
- Subject: Optimising an app for battery power use?
- From: Keith Blount <email@hidden>
- Date: Tue, 15 Mar 2005 01:44:49 -0800 (PST)
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
Hello,
In my program I have a text view and I am doing a lot
of things in the -textDidChange delegate method
(updating a lot of other elements that need to reflect
the changes, including a number of calls to the layout
manager to calculate the position of characters and
setting the frames of a number of subviews in another
view). I have worked hard on this, so that speed is
not an issue.
However, today I started testing the app on my iBook
G4 1Ghz on battery power, and it is notably slower
than when run on mains power. This is especially
notable after I run a large while loop (eg. I have
implemented a bullet points method, which loops
through the selected text looking for new lines and
adds a bullet to the beginning of each line - after
running this loop on battery power for a large amount
of text, my textDidChange method seems even slower,
which seems strange to me).
Are there any general rules for optimising an
application so that it runs smoothly on battery power?
Or just anything that I can do to ensure there is not
a noticable difference between running on battery and
on mains?
Many thanks for any help or advice,
Keith
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden