-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Hello,
Testing this project on TTGO VGA32, I had mentioned
that all file operation in CPM very slow.
After code checking found that for each operation with file
host make "open file", "read/write operation" and "close file"
CPM can make file operations with 128 bytes block only.
So such algorithm become dramatically slow.
For ex. MBASIC has size 24k. So simply load it in memory take 24k /128b = 192 operation.
192 time it's open and close file MBASIC.COM during loads in memory.
And, as a result, MBASIC loads 3.6 sec.
The same situation with write files...
I suppose such strategy also not good for SD cards...
So, there are need some cashing for removing additional open and close file operation.
Really CPM very rear use more than 3 file simultaneously and cashing for 10 opened file pointers
I think would be enough.