<p><a href="https://github.com/onlygecko" class="user-mention">@onlygecko</a> <a href="https://github.com/nicolas33" class="user-mention">@nicolas33</a><br>
The following is my opinion!<br>
Offlineimap algorithm implementation should be enhanced to run on far less memory, the 512MB in a R-Pi should be more than adequate.<br>
See criticisms here: <a href="http://blog.ezyang.com/2012/08/offlineimap-sucks/">http://blog.ezyang.com/2012/08/offlineimap-sucks/</a><br>
"Poor space complexity<br>
The memory usage of OfflineIMAP is linear with the number of messages in your inbox. For large mailboxes, this effectively means loading hundreds of thousands of elements into a set and doing expensive operations on it (OfflineIMAP consistently pegs my CPU when I run it). OfflineIMAP should be able to run in constant space, but zero algorithmic thought has been put into this problem space."</p>
<p>For one, the messages should be downloaded with python directly to disk, not memory. Reason, exactly as in this case, you can legitimately have a 95MB email message containing base64 mime encoded attachments, but disk space is more plentiful than ram. Also, most/all of the processing is on the header, and possibly the filename for the local Maildir option, body is ignored except for possible hash fingerprinting, so send it directly to disk.</p>
<p>Indeed, OLI is due for some implementation optimizations, it should run perfectly on a 512mb R-Pi, and consume a relatively constant amount of resources. Possibly 40-50MB of ram?</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/OfflineIMAP/offlineimap/issues/203#issuecomment-104341836">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AKFSELL_2DLf5tGDW0vuHDb2YPxXUUntks5oLfzqgaJpZM4EcgQK.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/OfflineIMAP/offlineimap/issues/203#issuecomment-104341836"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>