<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Performance hit due to "Allow undo on reload"]]></title><description><![CDATA[<p dir="auto">This new implementation is causing huge performance hit. Analysis is below (using 32 bit) -<br />
Opening a plain approx 30MB file consumes around 90MB RAM. Now</p>
<ul>
<li>
<p dir="auto">list item Reloading this file 15 times, brings RAM utilize to 1.2 GB. And reloading around 23~25 times causes “File is too large to open” error.</p>
</li>
<li>
<p dir="auto">list itemWhen Auto detect is enabled along with “Update silently”, then same file (30MB) after 23~25 will complain about “File is too large to open” error.</p>
</li>
<li>
<p dir="auto">Memory consumption increases exponentially on each reload.</p>
</li>
</ul>
<p dir="auto">This is really a performance hit which needs attention and MUST be fixed.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/17530/performance-hit-due-to-allow-undo-on-reload</link><generator>RSS for Node</generator><lastBuildDate>Sun, 11 Oct 2026 02:49:45 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/17530.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 28 Apr 2019 08:44:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Performance hit due to "Allow undo on reload" on Sat, 04 May 2019 15:28:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a></p>
<p dir="auto">yes, it has real attention.</p>
<p dir="auto">true, the significance has diminished a bit, as the worst thing that can happen to this feature of keeping the buffer after a reload, is to be reverted as suggested, if no-one can figure out and code a better performing and working alternative, than to outsource the undo buffer to disk, or clear the undo buffers manually, or clear them after a dialog triggered by a specific memory threshold.</p>
<p dir="auto">any ideas and/or commits are welcome, as we are in a stage of one group saying it’s a cool feature not to remove, and the other group is running into memory issues because of it.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/42909</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/42909</guid><dc:creator><![CDATA[Meta Chuh]]></dc:creator><pubDate>Sat, 04 May 2019 15:28:38 GMT</pubDate></item><item><title><![CDATA[Reply to Performance hit due to "Allow undo on reload" on Sat, 04 May 2019 14:34:55 GMT]]></title><description><![CDATA[<p dir="auto">This seems like a significant problem.  Is it getting any real attention?  I see it at <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/issues/5595" rel="nofollow ugc">https://github.com/notepad-plus-plus/notepad-plus-plus/issues/5595</a> but not much activity?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/42908</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/42908</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Sat, 04 May 2019 14:34:55 GMT</pubDate></item><item><title><![CDATA[Reply to Performance hit due to "Allow undo on reload" on Mon, 29 Apr 2019 10:02:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/singhrajenm" aria-label="Profile: SinghRajenM">@<bdi>SinghRajenM</bdi></a></p>
<p dir="auto">you are correct.</p>
<p dir="auto">opening the file for the first time seems to have the same memory consumption on 7.6.4, but each reloading the unchanged file consumes more memory on 7.6.6.</p>
<p dir="auto">this is indeed a big and intriguing problem.<br />
i have now tried it with your larger file fsutil nul file example and a 75mb test file.</p>
<p dir="auto"><strong>stock npp.7.6.4.bin on w7 x64:</strong><br />
notepad++, change.log open: 6.5mb<br />
load a 75mb test file: 165mb<br />
reload file: still appx the same 165mb</p>
<pre><code>Notepad++ v7.6.4   (32-bit)
Build time : Mar  6 2019 - 02:52:22
Path : C:\Users\User\Desktop\npp.7.6.4.bin\notepad++.exe
Admin mode : OFF
Local Conf mode : ON
OS : Windows 7 (64-bit)
Plugins : mimeTools.dll nppConverter.dll NppExport.dll 
</code></pre>
<p dir="auto"><strong>stock npp.7.6.6.bin on w7 x64:</strong><br />
notepad++, change.log open: 6.6mb<br />
load a 75mb test file: 159mb<br />
1 reload file: appx 310mb<br />
2nd reload file: appx 462mb<br />
3rd reload file: appx 614mb</p>
<pre><code>Notepad++ v7.6.6   (32-bit)
Build time : Apr  3 2019 - 23:49:50
Path : C:\Users\User\Desktop\npp.7.6.6.bin\notepad++.exe
Admin mode : OFF
Local Conf mode : ON
OS : Windows 7 (64-bit)
Plugins : ComparePlugin.dll mimeTools.dll 
</code></pre>
<p dir="auto">many thanks and best regards.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/42700</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/42700</guid><dc:creator><![CDATA[Meta Chuh]]></dc:creator><pubDate>Mon, 29 Apr 2019 10:02:07 GMT</pubDate></item><item><title><![CDATA[Reply to Performance hit due to "Allow undo on reload" on Mon, 29 Apr 2019 07:24:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/meta-chuh" aria-label="Profile: Meta-Chuh">@<bdi>Meta-Chuh</bdi></a> said:</p>
<blockquote>
<p dir="auto">being able to undo on an accidentally reloaded file is a feature that many people wanted and wished they had in the past</p>
</blockquote>
<p dir="auto">People often want things and don’t think about the consequences. Programs running <strong>stable</strong> is more important than having fancy features which counteract that. The current situation can cause data loss even after working some hours with a <strong>mid size</strong> file, the worst case for a text editor.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/42699</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/42699</guid><dc:creator><![CDATA[dinkumoil]]></dc:creator><pubDate>Mon, 29 Apr 2019 07:24:22 GMT</pubDate></item><item><title><![CDATA[Reply to Performance hit due to "Allow undo on reload" on Mon, 29 Apr 2019 04:15:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/meta-chuh" aria-label="Profile: Meta-Chuh">@<bdi>Meta-Chuh</bdi></a></p>
<blockquote>
<p dir="auto">reloading an unchanged file does not raise memory consumption on 7.6.6.</p>
</blockquote>
<p dir="auto">No, this is not true… I just created a 5MB (approx) file using command prompt <code>fsutil file  createnew largefile.txt 5000000</code> and trying to reload it. It consume huge memory.</p>
<h2>Action                                 size</h2>
<p dir="auto">Open npp (empty)               20MB<br />
Open one 5MB file              60MB<br />
1st crtl+R                              70MB<br />
2nd crtl+R                             80MB<br />
3rd crtl+R                              90MB<br />
10th crtl+R                            160MB</p>
<p dir="auto">Above result are based on x86 debug version with latest code. Result may differ on relase version and x64 version.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/42695</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/42695</guid><dc:creator><![CDATA[SinghRajenM]]></dc:creator><pubDate>Mon, 29 Apr 2019 04:15:37 GMT</pubDate></item><item><title><![CDATA[Reply to Performance hit due to "Allow undo on reload" on Sun, 28 Apr 2019 22:41:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/singhrajenm" aria-label="Profile: SinghRajenM">@<bdi>SinghRajenM</bdi></a></p>
<p dir="auto">i can understand your concerns.</p>
<p dir="auto">let’s focus on this calmly with the information we have:</p>
<ul>
<li>reloading an unchanged file does not raise memory consumption on 7.6.6.</li>
<li>monitoring a file should not populate the undo buffer in 7.6.6 and should not produce an elevated memory consumption compared to older versions.</li>
<li>the file given at the <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/issues/5595" rel="nofollow ugc">issue</a> that caused this reaction is a kind of log file, which should be monitored instead of being edited.</li>
<li>being able to undo on an accidentally reloaded file is a feature that many people wanted and wished they had in the past.</li>
</ul>
<p dir="auto">any further testing and brainstorming is appreciated.</p>
<p dir="auto">many thanks and best regards.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/42691</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/42691</guid><dc:creator><![CDATA[Meta Chuh]]></dc:creator><pubDate>Sun, 28 Apr 2019 22:41:54 GMT</pubDate></item><item><title><![CDATA[Reply to Performance hit due to "Allow undo on reload" on Sun, 28 Apr 2019 10:38:52 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">buffering of the old file content has to be moved over to the hard disk</p>
</blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dinkumoil" aria-label="Profile: dinkumoil">@<bdi>dinkumoil</bdi></a> when we have verbose backup available, this feature was not required at all. If someone is really concern about the old file content after the reload, then go to backup and pick whatever s/he is interested in.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/42684</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/42684</guid><dc:creator><![CDATA[SinghRajenM]]></dc:creator><pubDate>Sun, 28 Apr 2019 10:38:52 GMT</pubDate></item><item><title><![CDATA[Reply to Performance hit due to "Allow undo on reload" on Sun, 28 Apr 2019 09:57:05 GMT]]></title><description><![CDATA[<p dir="auto">Seems like this new feature has to be reverted or buffering of the old file content has to be moved over to the hard disk. But that would mean it would nearly double the automatic backup feature.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/42682</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/42682</guid><dc:creator><![CDATA[dinkumoil]]></dc:creator><pubDate>Sun, 28 Apr 2019 09:57:05 GMT</pubDate></item></channel></rss>