How to reduce File Provider memory footprint?

TedRogersTedRogers USMember ✭✭✭✭
edited October 2017 in Xamarin.iOS

Any ideas/tricks on how to reduce the memory footprint of my NSFileProviderExtension more than I already have?

I have done the following:
1. Got rid of
2. Got rid of System.Http.Net
3. Run file provider in Release mode (only build ARM64)

The file provider starts out with a footprint of about 11.5 MB on iPhone6 and 13.5 on iPad Pro (appex size is 2.3MB). Of course, when it hits 15 MB, BOOM!

For comparison, a file provider I built with XCode starts out with a memory footprint of about 3.4MB.

I can run for a while on my iPhone 6 but running on any iPad Pro quits upon first navigation.

I have a Pro account so I don't have access to the Xamarin Profiler.

Unfortunately, for iOS11 I needed to add Mono.Data.Sqlite. I hadn't seen this problem before adding sqlite. See references below:

Here are my iOS build settings:

Best Answer


  • DavideVostiDavideVosti CHUniversity ✭✭

    Hi Ted.

    I'm struggling with the very same issue. Did you find a solution to this issue??

  • TedRogersTedRogers USMember ✭✭✭✭
    Accepted Answer

    @DavideVosti Yes, I rewrote my FileProvider in Swift.

  • DavideVostiDavideVosti CHUniversity ✭✭

    :( that's not the answer I was looking for :( Thank you anayway

Sign In or Register to comment.