• 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: Performance slowdown when traversing UIElements under menu bar of Mail and some other apps
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Performance slowdown when traversing UIElements under menu bar of Mail and some other apps


  • Subject: Re: Performance slowdown when traversing UIElements under menu bar of Mail and some other apps
  • From: Peter Lübke <email@hidden>
  • Date: Wed, 17 Nov 2010 16:16:17 +0100

Here's some news on the subject.

Good news first:
- The problem is limited to Mail.app. I was wrong about Firefox - it is NOT affected.
- Mail.app in Snow Leopard (OSX 10.6 is not affected either.

Bad news is that Mail.app in Leopard (OSX 10.5) seems to be even worse than the Tiger version.

I wrote a test app that basically counts all AXUIElements under the application menu bar. When doing this, every element found is asked for its attribute names ( AXUIElementCopyAttributeNames() ), and, if present, for its AXChildrenAttribute.
I found that Mail.app not only allocates exponentially increasing memory space, but also returns an exponentially growing number of AXUIElements!

If, during counting, each element returned is asked for another attribute value (for example its AXRole), memory usage and the number of elements returned immediately again increases by about factor 2.

For the Tiger version, I found a fairly acceptable workaround by alternately selecting and deselecting the "Apple" menu periodically.

For Leopard, the workaround doesn't fix the problem, though it results in some improvement - the additional memory allocated doesn't increase as much as without the workaround, but it still does. Memory is freed only when the test app is terminated, while in Tiger terminating the test app has no effect.

Since also OSX 10.5 is concerned, do you think I should file a bug?

I wouldn't mind sending my test app (including XCode project) to whoever is interested.

Peter

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Performance slowdown when traversing UIElements under menu bar of Mail and some other apps (From: Peter Lübke <email@hidden>)
 >Re: Performance slowdown when traversing UIElements under menu bar of Mail and some other apps (From: Christiaan Hofman <email@hidden>)

  • Prev by Date: Re: Open Framework library : by using the name
  • Next by Date: Re: Open Framework library : by using the name
  • Previous by thread: Re: Performance slowdown when traversing UIElements under menu bar of Mail and some other apps
  • Next by thread: Re: Performance slowdown when traversing UIElements under menu bar of Mail and some other apps
  • Index(es):
    • Date
    • Thread