Open jync opened 7 years ago
Hi @jync,
Thank you for issue and sorry for delay.
Unfortunately there is no another way to handle contacts except loadContacts
method.
But if you know proper solution or something that can help avoid memory warnings (like placing objects in autorelease pool) I'll add it to source code and release it
We're using
APAddressBook
to load native contacts to search against. However, for some of our users who have > 10k native contacts, the app seems to be consuming too much memory, causing an unexpected JetSam event and terminating the app.Looking at the method where contacts are being extracted:
Would it be better if we call this method using an
autorelease pool
and batching up contacts? Is there a better way to handle the large volume of contacts withAPAddressBook
?