Easiest way is to write both solutions and analyse them with Instruments. 

Best,
ir

> Am 10.01.2018 um 12:48 schrieb Devarshi Kulshreshtha 
> <devarshi.bluec...@gmail.com>:
> 
> I had a discussion with my colleagues regarding use
> of dequeueReusableCellWithIdentifier, few of them are under assumption that
> if there are less number of cells it is better to directly alloc init a
> UITableViewCell in place of using dequeueReusableCellWithIdentifier. They
> are saying that since at a time almost all the cells will be displayed
> there is no need to use dequeueReusableCellWithIdentifier because it
> degrades performance in comparison to alloc init, in such scenarios. My
> understanding is that there is no any performance cost as such and behind
> the scenes dequeueReusableCellWithIdentifier is doing the same thing
> (allocating and initializing) if a cell cannot be reused.
> 
> Is there any way I can compare the performance of using
> dequeueReusableCellWithIdentifier versus using directly alloc init and
> share with them to come to a conclusion? Please suggest.
> 
> -- 
> Thanks,
> 
> Devarshi
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/igor%40elland.me
> 
> This email sent to i...@elland.me

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to