<?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[npp becomes slow for large text files, suggest alternative editors]]></title><description><![CDATA[<p dir="auto">npp becomes slow for large text files,</p>
<p dir="auto">I have one file of 1.5 MB, it takes some minute(s) after loading the file to reach from top to bottom just by pressing single command of Control-End.</p>
<p dir="auto">I have another file of 2.6 MB, it takes many-many minutes after loading the file to reach from top to bottom just by pressing single command of Control-End.</p>
<p dir="auto">please suggest some free alternative editors that can be used just for doing small changes in such huge files.</p>
<p dir="auto">The said software need not have npp type of versatile features, I will be using npp for any editing. I will just use that software for copy-pasting text to such huge files and saving the file.</p>
<p dir="auto">Thanks.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/21726/npp-becomes-slow-for-large-text-files-suggest-alternative-editors</link><generator>RSS for Node</generator><lastBuildDate>Fri, 14 Aug 2026 22:10:34 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/21726.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 24 Aug 2021 16:44:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to npp becomes slow for large text files, suggest alternative editors on Sun, 29 Aug 2021 22:52:47 GMT]]></title><description><![CDATA[<p dir="auto">In case this <s>dead horse</s> deceased parrot is ever viewed again:</p>
<p dir="auto">I found a third way to speed up the loading of large source code files by manipulating the “langs.xml” file:</p>
<ol>
<li>
<p dir="auto">Hide or rename the “langs.xml” file.  Notepad++ will complain if it can’t locate “langs.xml”, but will continue to work after the warning dialog box is dismissed.</p>
</li>
<li>
<p dir="auto">Create an absolute bare-bones version “langs.xml” with all source code sections removed.  Full contents of <code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;</code> works nicely.  The file cannot be a zero-length file, it must have some minimal contents.</p>
</li>
<li>
<p dir="auto">Just the specific language section can be removed or commented out (surrounded with <code>&lt;!--</code> &amp; <code>--&gt;</code> tokens):</p>
</li>
</ol>
<pre><code>&lt;!---
    &lt;Language name="json" ext="json" commentLine="" commentStart="" commentEnd=""&gt;
        &lt;Keywords name="instre1"&gt;false null true&lt;/Keywords&gt;
        &lt;Keywords name="instre2"&gt;@id @context @type @value @language @container @list @set @reverse @index @base @vocab @graph&lt;/Keywords&gt;
    &lt;/Language&gt;
--&gt;
</code></pre>
<p dir="auto">As with the file renaming and hardlink creation approaches, there is no syntactic and keyword highlighting or FunctionList available, but otherwise all other features are available.</p>
<p dir="auto">Neither hiding other folders [<code>userDefineLangs</code>, <code>autoCompletion</code>, <code>functionList</code>] nor hiding other files [<code>functionList.xml</code>, <code>stylers.xml</code>] showed any significant speedup in the file load time.  There may be an unique combination of XML file changes that does speed up load time.</p>
<p dir="auto">NOTE: While variations 1 &amp; 2 will disable formatting for <strong>ALL</strong> source code files edited, variation 3 only affects the <code>language name</code> commented out.</p>
<p dir="auto">If large source code files must be edited frequently and both the file rename and hardlink approaches are not practical to use:</p>
<ul>
<li>Unzip a separate portable version of Npp into Npp4FTB2EE (Npp for files too big to easily edit) &lt;grin&gt;</li>
<li>Replace the default “langs.xml” file with a version based on variation 2 or 3 above</li>
<li>The folders [<code>userDefineLangs</code>, <code>autoCompletion</code>, <code>functionList</code>] and file <code>functionList.xml</code> can be deleted</li>
</ul>
<p dir="auto">These variations have been tested and work properly in both Npp v8.1.4rc &amp; v7.9.5 and should also work in earlier versions but YMMV.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/69372</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/69372</guid><dc:creator><![CDATA[artie-finkelstein]]></dc:creator><pubDate>Sun, 29 Aug 2021 22:52:47 GMT</pubDate></item><item><title><![CDATA[Reply to npp becomes slow for large text files, suggest alternative editors on Thu, 26 Aug 2021 18:20:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/v-s-rawat" aria-label="Profile: V-S-Rawat">@<bdi>V-S-Rawat</bdi></a><br />
I forgot to include:<br />
Using Notepad++ on JSON files is not fundamentally different than using it on C files.  All that changes is which helpful XML based ‘add-ons’ Notepad++ invokes for syntax highlighting (a/k/a Styling), function lexing for the FunctionList panel and possibly auto-completion (a feature I turnoff in ANY editor I use, so I can’t really comment more on it).  By using the <code>file.ext.txt</code> access technique all those features are turned off without changing any of the Preferences… or Style Configurator… settings in the editor as well as leaving the <code>file.ext</code> still accessible to the rest of the development environment, e.g., make, git tools, servers, etc.  You still have <strong>full</strong> search &amp; replace, regex, marking, manual highlighting (now referred to as ‘Style…Token’ in the \Search menu), all the plugins, … Everything but the <em>eye-candy</em> is still available (don’t get me wrong, I use the <em>eye-candy</em> as much as I can as it makes coding &amp; editing much easier).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/69309</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/69309</guid><dc:creator><![CDATA[artie-finkelstein]]></dc:creator><pubDate>Thu, 26 Aug 2021 18:20:27 GMT</pubDate></item><item><title><![CDATA[Reply to npp becomes slow for large text files, suggest alternative editors on Thu, 26 Aug 2021 04:35:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/v-s-rawat" aria-label="Profile: V-S-Rawat">@<bdi>V-S-Rawat</bdi></a><br />
I created a hardlink <a href="https://community.notepad-plus-plus.org/post/67282">(example for a different file)</a> in my folder of the NppSnippets plugin source code:</p>
<pre><code>mklink /h sqlite3.c.txt sqlite3.c
</code></pre>
<p dir="auto">It’s an 8 MB C file with over 230,000 LoC which I chose simply because it was the largest source code file at hand. By using the <code>hardlink</code> approach, I didn’t change my disk space usage as both names now point to the same storage space on the drive.  But, the file <code>sqlite3.c.txt</code> loads in a couple of seconds while the file <code>sqlite3.c.</code> takes an interminable amount of time to load.  Any changes made to <code>sqlite3.c.txt</code> will affect <code>sqlite3.c</code> (and vice-versa).</p>
<p dir="auto">As an additional experiment, after again loading <code>sqlite3.c</code> (and twiddling my thumbs for a while), I turned off file type processing (\Language\None (Normal Text)) and it was quite zippy to move around in the file.  But turning lexing back on (\Language\C) again takes an interminable time as over 996,00 tokens (words) must be processed and the editor is once again in <em>molasses mode</em>.</p>
<p dir="auto">When in the <em>desired speed mode</em>, i.e., while editing <code>sqlite3.c.txt</code>, I searched for the key word ‘return’ and was almost instantly informed there were 9239 matches in the file, and all nicely highlighted in green.  The point is, if you can live without the visual sugar of code highlighting, Notepad++ is quite fast on <a href="https://en.wikipedia.org/wiki/Blazing_Saddles" rel="nofollow ugc">Mongo sized</a> source code files.</p>
<p dir="auto">As I mentioned in the <a href="https://community.notepad-plus-plus.org/post/67282">other post</a>, Notepad++ and <strong>ANY</strong> other application will consider hardlinked files as two separate files, so it’s up to you to not allow modifications to both at the same time.  There are other helpful hints in that post, but I feel this warning is important enough to repeat here.</p>
<p dir="auto">FWIW:  I rarely fire up a console (cmd session) to use <code>mklink</code> now that I’ve installed <a href="http://schinagl.priv.at/nt/hardlinkshellext/hardlinkshellext.html" rel="nofollow ugc">Link Shell Extension</a>.</p>
<p dir="auto">PrePS:  If hardlinks are not your cup of tea, simply renaming the file also works, but now you must remember to restore the name after editing.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/69279</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/69279</guid><dc:creator><![CDATA[artie-finkelstein]]></dc:creator><pubDate>Thu, 26 Aug 2021 04:35:32 GMT</pubDate></item><item><title><![CDATA[Reply to npp becomes slow for large text files, suggest alternative editors on Wed, 25 Aug 2021 15:30:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/artie-finkelstein" aria-label="Profile: artie-finkelstein">@<bdi>artie-finkelstein</bdi></a> said in <a href="/post/69241">npp becomes slow for large text files, suggest alternative editors</a>:</p>
<blockquote>
<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><br />
It’s actually what I tested with, but I didn’t think adding hardlinking was ‘the most direct way’ to demonstrate how to keep the style lexer from <strong>helping</strong>.</p>
</blockquote>
<p dir="auto">My both huge files are .json, that are used for foxreplace in firefox and its clones.</p>
<p dir="auto">yes, I have kept language keyword highlights and styling on as a default of npp. If that is causing the delay, I can sure turn that off without loosing any functionality that I require.</p>
<p dir="auto">Please drop a word to assure.</p>
<p dir="auto">Thanks.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/69260</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/69260</guid><dc:creator><![CDATA[V S Rawat]]></dc:creator><pubDate>Wed, 25 Aug 2021 15:30:05 GMT</pubDate></item><item><title><![CDATA[Reply to npp becomes slow for large text files, suggest alternative editors on Tue, 24 Aug 2021 23:52:47 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><br />
It’s actually what I tested with, but I didn’t think adding hardlinking was ‘the most direct way’ to demonstrate how to keep the style lexer from <strong>helping</strong>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/69241</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/69241</guid><dc:creator><![CDATA[artie-finkelstein]]></dc:creator><pubDate>Tue, 24 Aug 2021 23:52:47 GMT</pubDate></item><item><title><![CDATA[Reply to npp becomes slow for large text files, suggest alternative editors on Tue, 24 Aug 2021 23:39:36 GMT]]></title><description><![CDATA[<p dir="auto">Artie, I’m surprised you didn’t mention this technique of yours as well:  <a href="https://community.notepad-plus-plus.org/post/67282">https://community.notepad-plus-plus.org/post/67282</a></p>
]]></description><link>https://community.notepad-plus-plus.org/post/69239</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/69239</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 24 Aug 2021 23:39:36 GMT</pubDate></item><item><title><![CDATA[Reply to npp becomes slow for large text files, suggest alternative editors on Tue, 24 Aug 2021 22:31:44 GMT]]></title><description><![CDATA[<p dir="auto">You can treat the file contents as plain text by turning off language styling (\Language\None (Normal Text)) or temporarily changing the file extension. The delay is not so much in moving in the file as it is from all the other helpful ‘baggage’ that code formatting supplies.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/69236</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/69236</guid><dc:creator><![CDATA[artie-finkelstein]]></dc:creator><pubDate>Tue, 24 Aug 2021 22:31:44 GMT</pubDate></item><item><title><![CDATA[Reply to npp becomes slow for large text files, suggest alternative editors on Tue, 24 Aug 2021 17:04:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/v-s-rawat" aria-label="Profile: V-S-Rawat">@<bdi>V-S-Rawat</bdi></a> said in <a href="/post/69219">npp becomes slow for large text files, suggest alternative editors</a>:</p>
<blockquote>
<p dir="auto">please suggest some free alternative editors that can be used just for doing small changes in such huge files</p>
</blockquote>
<p dir="auto">We’re not really in the game here of suggesting alternatives to our favorite. :-)</p>
<p dir="auto">But…perhaps try <a href="https://lmgtfy.app/?q=free+windows+text+editors+for+large+files" rel="nofollow ugc">THIS</a>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/69220</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/69220</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Tue, 24 Aug 2021 17:04:38 GMT</pubDate></item></channel></rss>