<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: [Swifty] File download memory management in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Swifty-File-download-memory-management/m-p/163897#M5797</link>
    <description>&lt;P&gt;Is there any fix for this &lt;/P&gt;</description>
    <pubDate>Thu, 02 Jun 2016 11:47:43 GMT</pubDate>
    <dc:creator>sunil t.</dc:creator>
    <dc:date>2016-06-02T11:47:43Z</dc:date>
    <item>
      <title>[Swifty] File download memory management</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Swifty-File-download-memory-management/m-p/163890#M5790</link>
      <description>&lt;P&gt;I noticed that for every GB I download to local file system via &amp;nbsp;&lt;SPAN class="s1"&gt;client.&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;files&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;.&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;download, the app's memory usage increase by that amount. I imagine the Dropbox client doesn't keep the file in memory after it downloads the file, so it must be something that the rest of my app is doing. Can you confirm? Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:36:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Swifty-File-download-memory-management/m-p/163890#M5790</guid>
      <dc:creator>James Z.3</dc:creator>
      <dc:date>2019-05-29T09:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: [Swifty] File download memory management</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Swifty-File-download-memory-management/m-p/163891#M5791</link>
      <description>&lt;P&gt;Hi James, that certainly would be unexpected and non-ideal, and I'm not aware of any other such reports. If it doesn't seem to be something your app is doing though, we'd be happy to look into it. The version number of the SDK you're using and the relevant code snippet(s) would be useful in that case.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jan 2016 07:06:17 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Swifty-File-download-memory-management/m-p/163891#M5791</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-01-16T07:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: [Swifty] File download memory management</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Swifty-File-download-memory-management/m-p/163892#M5792</link>
      <description>&lt;P&gt;Hi Greg, thanks for the quick response. Here's a &lt;A href="https://gist.github.com/jamesfzhang/d0c647c93977074d5c6b" target="_blank" rel="nofollow noreferrer"&gt;gist&lt;/A&gt;&amp;nbsp;of what the app tries to do. It downloads an mp3 file and tries to extract its metadata. I'm on&amp;nbsp;2.0.2 right now. Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jan 2016 07:21:24 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Swifty-File-download-memory-management/m-p/163892#M5792</guid>
      <dc:creator>James Z.3</dc:creator>
      <dc:date>2016-01-16T07:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: [Swifty] File download memory management</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Swifty-File-download-memory-management/m-p/163893#M5793</link>
      <description>&lt;P&gt;Thanks! We'll look into it.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jan 2016 07:26:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Swifty-File-download-memory-management/m-p/163893#M5793</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-01-16T07:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: [Swifty] File download memory management</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Swifty-File-download-memory-management/m-p/163894#M5794</link>
      <description>&lt;P&gt;Hi, We are seeing a similar issue when downloading files from Dropbox using Swifty Dropbox. The memory usage increases gradually to almost 2/3 of the file size by around&amp;nbsp;1 MB/sec. For example for a file of size 320 MB the memory usage goes from 40 MB (when download started) to 240 MB and stays there until the download is finished:&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;let&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; destination : (&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;NSURL&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;, &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;NSHTTPURLResponse&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;) -&amp;gt; &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;NSURL&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; = { temporaryURL, response &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;in&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;let&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; localUrl = &lt;/SPAN&gt;&lt;SPAN class="s3"&gt;NSURL&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;(fileURLWithPath: &lt;/SPAN&gt;&lt;SPAN class="s4"&gt;self&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;.localPath)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;return&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; localUrl&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;if&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;let&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; client = &lt;/SPAN&gt;&lt;SPAN class="s4"&gt;Dropbox&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;.authorizedClient {&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;client.files.download(path: &lt;/SPAN&gt;&lt;SPAN class="s4"&gt;dbPath&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;, destination: &lt;/SPAN&gt;&lt;SPAN class="s4"&gt;destination&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;).response&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;{&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;response, error &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;in&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;if&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;let&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; (metadata, url) = response {&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;if&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; error != &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;nil&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; {&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;NSlog(&lt;/SPAN&gt;&lt;SPAN class="s5"&gt;"Dropbox download failed. &lt;/SPAN&gt;&lt;SPAN class="s1"&gt;\&lt;/SPAN&gt;&lt;SPAN class="s5"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;error!.description&lt;/SPAN&gt;&lt;SPAN class="s5"&gt;)"&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;, .Error)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;else&lt;/SPAN&gt;&lt;SPAN class="s1"&gt; {&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;NSlog(&lt;/SPAN&gt;&lt;SPAN class="s5"&gt;"Dropbox file downloaded."&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2016 05:10:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Swifty-File-download-memory-management/m-p/163894#M5794</guid>
      <dc:creator>sigrem</dc:creator>
      <dc:date>2016-03-23T05:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: [Swifty] File download memory management</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Swifty-File-download-memory-management/m-p/163895#M5795</link>
      <description>&lt;P&gt;Thanks for the additional information sigrem! I don't have an update on this right now, but I'll follow up on this thread when I do.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2016 06:13:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Swifty-File-download-memory-management/m-p/163895#M5795</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-03-23T06:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: [Swifty] File download memory management</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Swifty-File-download-memory-management/m-p/163896#M5796</link>
      <description>&lt;P&gt;I also faced the same problem when download from Dropbox the file size increases&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2016 11:46:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Swifty-File-download-memory-management/m-p/163896#M5796</guid>
      <dc:creator>sunil t.</dc:creator>
      <dc:date>2016-06-02T11:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: [Swifty] File download memory management</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Swifty-File-download-memory-management/m-p/163897#M5797</link>
      <description>&lt;P&gt;Is there any fix for this &lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2016 11:47:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Swifty-File-download-memory-management/m-p/163897#M5797</guid>
      <dc:creator>sunil t.</dc:creator>
      <dc:date>2016-06-02T11:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: [Swifty] File download memory management</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Swifty-File-download-memory-management/m-p/163898#M5798</link>
      <description>&lt;P&gt;Hi Sunil, we looked into this issue on our end and were not able to reproduce it, even in the case of large file downloads. SwiftyDropbox does not handle any memory management -- memory is managed by a&amp;nbsp;third-party networking library,&amp;nbsp;AlamoFire.&lt;/P&gt;
&lt;P&gt;You might also want to double check your memory usage levels. Xcode's simulator is known to be unreliable&amp;nbsp;about showing accurate memory usage levels. I would be sure to test memory usage on an actual device as well.&lt;/P&gt;
&lt;P&gt;Additionally, we will be distributing a new version of SwiftyDropbox in the next week. I would encourage you to adopt the new version when it is released, as it might address the issue for you as well.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 00:43:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Swifty-File-download-memory-management/m-p/163898#M5798</guid>
      <dc:creator>Stephen C.14</dc:creator>
      <dc:date>2016-06-03T00:43:36Z</dc:date>
    </item>
  </channel>
</rss>

