Sonic and Sega Retro Message Board: Notepad Lag - Sonic and Sega Retro Message Board

Jump to content

Hey there, Guest!  (Log In · Register) Help
Loading News Feed...
 

Notepad Lag

#1 User is offline MarkeyJester 

Posted 26 January 2012 - 06:00 PM

  • A word in your shell-like, pal
  • Posts: 1305
  • Joined: 22-July 08
  • Gender:Male
  • Location:Japan
  • Wiki edits:16
OK, to debrief on what I mean here before asking, allow me to thoroughly explain the situation.

The tool "Notepad.exe" that comes with Windows operating systems is what I use on a very frequent basis, and about 4 years ago I found that every time I performed a complete harddisk format and new installation (to clean and optimise, etc, yada, yada), Notepad would change in performance, on some installations I found that inserting or removing new lines, or replacing highlighted text in documents (those with huge amounts of text) would cause a slight delay (a.k.a. lag), while on some installations I found the lag to simply not exist at all with no trouble (and we're talking the same machine here, and same installation). I later found out that is was the additional language support that came with windows that was the cause of the lag, and that by not installing the additional languages (ones I didn't need) would allow Notepad to insert/remove/replace strings of text with no lag at all.

To jump ahead now 4 years on, I recently got a new computer because my old one was taking its toll on me, unfortunately it came with Windows 7, and I wasn't able to downgrade to XP like I wanted, but no matter, I can deal with that as I am not too fussy with these things (I can learn to live with a few bent rules), however, I found that Notepad had the same issue of lag that I explained above, now at first I assumed the lag was caused by the same issue as XP's, but with it being slightly hard to navigate around 7, I haven't been able to fully look into languages, it seems that a certain language install/remove section that was shown on a page explaining "how to install/remove languages" doesn't exist on my side, hence I'm assuming there is only one language support in use at the moment, and that is the one I'm using now.

This is where I look to you lot retro for your wisdom, if language support is not the cause of this lag (in this instances), then do you happen to know what the cause is? And if so, do you happen to know how to remove/resolve it?

I'm really not happy with having to wait a few seconds for a new line to insert, and I cannot accept the fact that inserting/removing/replacing text on large documents in Notepad on Windows XP would have no lag at all, while 7 can being the newer software and being on a much faster machine, that just seems like bullshit to me...

I would also like to point out that I have no intent on looking for another text editing tool (because I shouldn't have to really), so please don't recommend any.

#2 User is offline FuzzballFox 

Posted 26 January 2012 - 06:05 PM

  • Hmmmmm
  • Posts: 525
  • Joined: 24-October 05
  • Location:UK - Hampshire
  • Project:Nothing anymore
Thought about downgrading back to the old Notepad.exe?
I pretty much HAD to redownload the old Paint.exe for obvious reasons, but I am unsure if your lag issue would be improved by trying the original on your new machine

#3 User is offline MarkeyJester 

Posted 26 January 2012 - 06:35 PM

  • A word in your shell-like, pal
  • Posts: 1305
  • Joined: 22-July 08
  • Gender:Male
  • Location:Japan
  • Wiki edits:16
I didn't no, mainly because I assumed that because the cause of XP's lag was not specifically notepad itself, it might be likely that 7's is of the same nature, and that using XP's would make no difference.

But just for the sake of making sure, I just gave XP's a try, and yeah, the lag is still present, so as I understand it, it is something external and not specific to notepad that is causing this lag (correct me if I'm wrong anyone). Thanks for replying though, I do appreciate the suggestion.

#4 User is offline ValleyBell 

Posted 26 January 2012 - 07:14 PM

  • Posts: 137
  • Joined: 08-September 10
  • Gender:Male
  • Project:vgm tools and vgm packs, other random projects
  • Wiki edits:10
I'm using notepad.exe a lot to trim vgms, so I work with quite large files. And I always had the feeling that it works a lot slower in Win7 than in WinXP. (It seems to work faster even on my old Pentium II with Win2000!)

I'm using a laptop with Intel i5 2.4 GHz and 4 GB RAM and when I read your post, I had to test it by myself.
So I used vgm2txt to make an 8 MB txt-file, opened it with notepad.exe, copied the first 2 lines and pasted them a few times at the start of the file. Pasting the two lines one time took as long as opening the file in all cases.

I have both, Win7 and WinXP, installed on my laptop and here are the results:
Windows XP:
- automatic line breaks disabled: 1 second
- automatic line breaks enabled: 2-3 seconds

Windows 7:
- automatic line breaks disabled: 9 seconds
- automatic line breaks enabled: 16 seconds

I used the Win7 notepad.exe on Windows 7, but a quick test showed that the XP notepad has the same lag and loading times as the Win7 one.

#5 User is offline Andlabs 

Posted 26 January 2012 - 10:57 PM

  • 「いっきまーす」
  • Posts: 2069
  • Joined: 11-July 08
  • Gender:Male
  • Project:Writing my own MD/Genesis sound driver :D
  • Wiki edits:7,061
How big are the files you are trying to open? Or does this happen with any file?

#6 User is offline MarkeyJester 

Posted 27 January 2012 - 08:01 AM

  • A word in your shell-like, pal
  • Posts: 1305
  • Joined: 22-July 08
  • Gender:Male
  • Location:Japan
  • Wiki edits:16
Approximately 1MB, but opening them isn't a problem as much, just replacing text and/or inserting/removing new lines. I won't buy the idea that the file being too large is the main reason for the lag, especially when I've been able to open the very same file with the very same tool before with no lag =$

#7 User is offline TmEE 

Posted 27 January 2012 - 08:25 AM

  • Watermelons are good stuff
  • Posts: 1492
  • Joined: 06-January 08
  • Gender:Male
  • Location:Estonia, Rapla City
  • Project:Mélodie, Radical Rat, Cannon Cat, SMStrk
  • Wiki edits:11
it is one of the reasons my primary text editor is now EDIT.COM, or Metapad.exe

#8 User is offline tokumaru 

Posted 28 January 2012 - 12:14 AM

  • Posts: 576
  • Joined: 17-June 07
  • Gender:Male
  • Location:Rio de Janeiro
  • Project:Platformer for the NES

View PostMarkeyJester, on 27 January 2012 - 08:01 AM, said:

I won't buy the idea that the file being too large is the main reason for the lag, especially when I've been able to open the very same file with the very same tool before with no lag =$

With or without word wrap? I seem to remember that making a huge difference in Notepad... When you have word wrap on, the program has to constantly calculate where the lines break, which can be pretty slow if the file is 1MB+. I use Notepad++ now, which is better in every way, but can be as simple as the regular Notepad if you don't want to use any of the extra features.

#9 User is offline Conan Kudo 

Posted 28 January 2012 - 12:37 AM

  • 「真実はいつも一つ!」工藤新一
  • Posts: 477
  • Joined: 12-January 09
  • Gender:Male
  • Wiki edits:14
If you want to examine how notepad is made, you can get the source code for Notepad and WordPad from the Windows Platform SDK on Microsoft's website. Believe me when I say that Notepad is so simple, it's self-destructive at times.

#10 User is offline MarkeyJester 

Posted 28 January 2012 - 12:37 AM

  • A word in your shell-like, pal
  • Posts: 1305
  • Joined: 22-July 08
  • Gender:Male
  • Location:Japan
  • Wiki edits:16
I do recall seeing something along the lines of word wrap causing lag when searching on google, but I never have word wrap on...

#11 User is offline Sik 

Posted 28 January 2012 - 12:40 AM

  • Sik is pronounced as "seek", not as "sick".
  • Posts: 6719
  • Joined: 17-March 06
  • Gender:Male
  • Project:being an asshole =P
  • Wiki edits:11
Notepad likes to lag on MB-sized files... At least that's my experience with it.

#12 User is offline Overlord 

Posted 28 January 2012 - 12:49 PM

  • "I am Death, not Taxes. I turn up only once."
  • Posts: 12404
  • Joined: 12-January 03
  • Gender:Male
  • Location:Berkshire, England
  • Project:VGDB
  • Wiki edits:3,204
This is part of why I use notepad2 for anything that's above about 500KB in size.

#13 User is offline Covarr 

Posted 28 January 2012 - 03:22 PM

  • Sentient Cash Register
  • Posts: 1784
  • Joined: 05-February 07
  • Gender:Male
  • Location:Over there
  • Wiki edits:1

View PostOverlord, on 28 January 2012 - 12:49 PM, said:

This is part of why I use notepad2 for anything that's above about 500KB in size.

I'm a big fan of Notepad++ myself. Support for AutoIt and NSIS (among MANY other languages), as well as the ability to output straight to a compiler, go a long way.

#14 User is offline Black Squirrel 

Posted 28 January 2012 - 03:34 PM

  • 2 warps to Neptune
  • Posts: 1897
  • Joined: 27-December 03
  • Gender:Male
  • Location:Northumberland, England
  • Project:Blog Squirrel
  • Wiki edits:20,569
I think the idea with Notepad (as with many default Windows programs) is that it's not supposed to handle megabytes worth of data. The expectation is to use a more capable program if you find yourself using these features a lot (and I'll second the use of Notepad++ while I'm here)

Notepad is just capable enough for Windows developers to do quick tests of software, but doesn't bog down systems with tons of features they might not need. It used to be the same with Paint and Sound Recorder and whatever. Chances are some of the code behind it still dates from 1985 (or at least the Windows 95 build) so it likely never expected to receive 8MB worth of data (and thus wasn't tested to see if it would cope).

#15 User is online GerbilSoft 

Posted 28 January 2012 - 04:17 PM

  • RickRotate'd.
  • Posts: 1604
  • Joined: 11-January 03
  • Gender:Male
  • Location:USA
  • Project:Gens/GS
  • Wiki edits:158

View PostBlack Squirrel, on 28 January 2012 - 03:34 PM, said:

I think the idea with Notepad (as with many default Windows programs) is that it's not supposed to handle megabytes worth of data. The expectation is to use a more capable program if you find yourself using these features a lot (and I'll second the use of Notepad++ while I'm here)

Basically this. Notepad is simply a wrapper around the default Win32 EDIT control, which isn't designed to handle large amounts of text. (In Win9x and earlier, it couldn't even handle more than 64 KB!)

The EDIT control is mostly intended for textboxes, not displaying huge amounts of text. Hence, it's not optimized for displaying large files.

  • 2 Pages +
  • 1
  • 2
    Locked
    Locked Forum

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users