Program size limit (G1 vs G2)
|
09-28-2023, 01:40 PM
Post: #11
|
|||
|
|||
RE: Program size limit (G1 vs G2)
(09-28-2023 10:19 AM)matalog Wrote: Amazing. Would you not be better seperating each letters collection of words into 26 seperate files in an app or seperate programs which are called when the entered word begins with that letter and return relevant data to the main program? I'm well aware of such a possibility; I even mentioned it in this thread in post #4. This program employs advanced optimization techniques that have their requirements. Normally, if you wanted to search through 26 word files for a pattern like ??B? (with an unknown first letter), you would have to scan the entire 6MB and, byte by byte, scan and compare letters, which would probably take well over a minute, if not more, for a single search. In its current form, finding all matching words takes from a few milliseconds to a maximum of a few seconds (even if there are a few thousand matching words). You can read about the implementation of this project here: https://www.hpmuseum.org/forum/thread-20369.html. It's a lengthy but very interesting thread discussing various optimization approaches. However, returning to the idea of creating it as an application, would there be an icon, right? And what would happen if someone clicked on it? Nothing, because it's an additional command run from the HOME screen, which returns the result to the stack. So I was considering an alternative solution, but I'm not ruling out making it an application. If I don't find a better solution, I'll turn it into an application. However, breaking down the dictionary into files will look completely different than dividing it alphabetically to minimize the performance impact. Piotr Kowalewski |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)