GuiParas equ "Hello World", x300, w700, h999, b LiteBlueGreen ; width+height, margins, background colour
include \masm32\MasmBasic\Res\MbGui.asm
NanoTimer()
ClearLastError
GuiControl MyEdit, "Edit", bcol LiteYellow, fcol Black, font -14 ; colours & fonts have no effect with rtf files
invoke SendMessage, hMyEdit, EM_SETLIMITTEXT, 5000000, 0
SetWin$ hMyEdit=FileRead$(CL$())
GuiControl MyStatus, "statusbar", wRec$(NanoTimer$())
GuiEnd
So far, so simple: drag a file over the exe and see it load. What's interesting is that a 4.4MB "bible.txt" takes about 19 seconds to load. Notepad is a bit faster, at 4-5 seconds - how can it be 4 times as fast? Secret switches?
What's even more interesting is that, if you change "Edit" to "RichEdit", the same file loads in ... taraa! ... 105ms. That's a factor 176 faster. I like it.
Executables are attached.