_updateTrackingAreas really slow

  • I have an NSCollectionView with really simple (i.e. no tracking areas) item views.

    In a test case of about 1500 items, scrolling gets unacceptably choppy. I've tracked this down to calls to a private method,
    -[NSView _updateTrackingAreas].

    While scrolling,  _updateTrackingAreas is called for my item views each time they move a few pixels, even though they have no tracking areas. _updateTrackingAreas in turn calls
    -[NSNotificationCenter postNotificationName:object:userInfo:], which is what is actually taking up all the time.

    Stubbing out _updateTrackingAreas improves the scrolling dramatically, but I'd like to find a sanctioned way to at least delay the recalculation of tracking areas until scrolling is done.

    Any pointers?

    _murat
  • Hi _murat,Please log a bug on this for us.

    --corbin

    On 05/17/12, "<mlist0987...>"  <mlist0987...> wrote:
    > I have an NSCollectionView with really simple (i.e. no tracking areas) item views.
    >
    > In a test case of about 1500 items, scrolling gets unacceptably choppy. I've tracked this down to calls to a private method,
    > -[NSView _updateTrackingAreas].
    >
    > While scrolling,  _updateTrackingAreas is called for my item views each time they move a few pixels, even though they have no tracking areas. _updateTrackingAreas in turn calls
    > -[NSNotificationCenter postNotificationName:object:userInfo:], which is what is actually taking up all the time.
    >
    > Stubbing out _updateTrackingAreas improves the scrolling dramatically, but I'd like to find a sanctioned way to at least delay the recalculation of tracking areas until scrolling is done.
    >
    > Any pointers?
    >
    > _murat
    >
    >
    >
previous month may 2012 next month
MTWTFSS
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
Go to today