> On Jul 15, 2015, at 6:48 AM, Daniel Sonny Agliardi <[email protected]> wrote: > > I was analyzing performances of my app with Instruments and i noticed that a > method needs a lot time to be completed, this method is > [CBLDatabase(Internal) notifyChanges:] (see the attached photo below). > In that profile, it would have been interesting to drill down into -[NSNotificationCenter postNotificationName:…], which is where 97% of the time is spent. The actual notification observer methods are called during this, and it’s probably one or more of those observers that’s consuming the CPU. Those could be observers in your own code, which would indicate that your code should be optimized.
If you profile this again and need help interpreting it, save the profile and email me the file and I’ll take a look. > There is a way to disable it? In particular because i assume that method is > used for live queries feature and i don't currently use it. > No, it can’t be disabled. It’s used for a lot of other things too, like Posting CBLDatabaseChanged notifications Posting CBLDocumentChanged notifications Updating CBLModel objects’ properties Notifying a continuous push replication that there are new revisions to push —Jens -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/860164E5-5460-4FC8-ACDE-651ED273D37B%40couchbase.com. For more options, visit https://groups.google.com/d/optout.
