<blockquote>
<p>Do you really consider 250 MB - 300 MB as a ridiculously large file for 2017?</p>
</blockquote>
<p>For a source code file, it's very large. Even auto-generated source code would rarely (if ever) get that large. Not that it's a use case that shouldn't be supported if possible. If the machine can handle it and you're patient enough, then the only limit should be the size of a signed integer (usually 2^32) minus one.</p>
<blockquote>
<p><a href="https://github.com/codebrainz" class="user-mention">@codebrainz</a> keep_edit_history_on_reload is currently ticked.</p>
</blockquote>
<p>If you're Reloading the file (either by the menu, toolbar or <kbd>Ctrl</kbd>+<kbd>r</kbd>), then each time it will duplicate the entire file contents into memory. For example if you reload a 300MB file, it will put all 300MB into the undo buffer, plus whatever the new contents are will be resident in the buffer. If you reload it a second time, the undo buffer will contain 600MB of data, and so on. That's why I mentioned it.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/1540#issuecomment-319832284">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ2J9-_H9mxdRjuR4U4pesNwjPfV1ks5sURAUgaJpZM4OXZIY">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJy7ALLytiNYVhB7qqjlaSpiib-nqks5sURAUgaJpZM4OXZIY.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/geany/geany/issues/1540#issuecomment-319832284"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"PERSON","message":"@codebrainz in #1540: \u003e Do you really consider 250 MB - 300 MB as a ridiculously large file for 2017?\r\n\r\nFor a source code file, it's very large. Even auto-generated source code would rarely (if ever) get that large. Not that it's a use case that shouldn't be supported if possible. If the machine can handle it and you're patient enough, then the only limit should be the size of a signed integer (usually 2^32) minus one.\r\n\r\n\u003e @codebrainz keep_edit_history_on_reload is currently ticked.\r\n\r\nIf you're Reloading the file (either by the menu, toolbar or \u003ckbd\u003eCtrl\u003c/kbd\u003e+\u003ckbd\u003er\u003c/kbd\u003e), then each time it will duplicate the entire file contents into memory. For example if you reload a 300MB file, it will put all 300MB into the undo buffer, plus whatever the new contents are will be resident in the buffer. If you reload it a second time, the undo buffer will contain 600MB of data, and so on. That's why I mentioned it."}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/1540#issuecomment-319832284"}}}</script>