• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Optimising an app for battery power use?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Optimising an app for battery power use?
      • From: Guy English <email@hidden>
    • Re: Optimising an app for battery power use?
      • From: Frederick Cheung <email@hidden>
  • Prev by Date: CocoaInCarbon NSApplicationLoad
  • Next by Date: Duplicate Nib Windows
  • Previous by thread: CocoaInCarbon NSApplicationLoad
  • Next by thread: Re: Optimising an app for battery power use?
  • Index(es):
    • Date
    • Thread