• 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
Re: Optimising an app for battery power use?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Optimising an app for battery power use?


  • Subject: Re: Optimising an app for battery power use?
  • From: Frederick Cheung <email@hidden>
  • Date: Tue, 15 Mar 2005 09:53:10 +0000


On 15 Mar 2005, at 09:44, Keith Blount wrote:

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?

It is not unusual for an application to run slower when on battery power since the CPU's frequency is decreased (according to the technote, the 1Ghz ibook will slow down to 500Mhz) and in machines with an L3 cache, this may be turned off).

Fred

_______________________________________________
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


References: 
 >Optimising an app for battery power use? (From: Keith Blount <email@hidden>)

  • Prev by Date: Duplicate Nib Windows
  • Next by Date: Re: Duplicate Nib Windows
  • Previous by thread: Optimising an app for battery power use?
  • Next by thread: Re: Optimising an app for battery power use?
  • Index(es):
    • Date
    • Thread