Iglistkit: dequeueReusableSupplementaryViewOfKind kill the performance of app

Created on 10 Jul 2017  路  8Comments  路  Source: Instagram/IGListKit

Hi Just used the header and footer view after that scrolling become very hard, when i do performance testing with time profile I saw some 900x to 1000x time taken by the above methods

Both header and footer are very simple footer have one button inside and header as just a label.

screen shot 2017-07-10 at 4 14 23 pm
screen shot 2017-07-10 at 4 15 20 pm

General information

  • IGListKit version:
  • iOS version(s):
  • CocoaPods/Carthage version:
  • Xcode version:
  • Devices/Simulators affected:
  • Reproducible in the demo project? (Yes/No):
  • Related issues:

Debug information

# Please include debug logs using the following lldb command:
po [IGListDebugger dump]
question

All 8 comments

Would be valueable to know a bit more about your setup. Is this something you can modify the example project to show the same behaviour? We use headers and footers in our app and are not seing this performance hit.

Ya this is a little hard to debug w/out more details. A profiler trace or a sample project reproducing the issue would be super helpful. We have relatively complex headers within Instagram and do not have any performance issues w/ supplementary views.

Are you using UICollectionViewFlowLayout?

HI @rnystrom and @heumn
This really strange issue I am facing when I try to write sample app for same I am not able to reproduce the issue its working fine.
But when i run in my project the issue is coming always, when I removed the header and footer its working even either one is also bringing performance to track.
_Are you using UICollectionViewFlowLayout?_
Yes its UICollectionViewFlowLayout

I will try to add profiler trace

any update guys?

I've got this in my queue, but debugging other implementations takes a much lower priority over our work here at Instagram. Will get to this when I can run through my backlog!

Also our IT security flagged this file, I'm not even sure I'll be able to open it :(

@Shivaprasad2452 do you think you could provide an example project and I will try help you?

Gonna close due to inactivity

Was this page helpful?
0 / 5 - 0 ratings