Post Reply 
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
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Program size limit (G1 vs G2) - komame - 09-27-2023, 03:27 PM
RE: Program size limit (G1 vs G2) - Tyann - 09-27-2023, 05:14 PM
RE: Program size limit (G1 vs G2) - komame - 09-27-2023, 09:22 PM
RE: Program size limit (G1 vs G2) - Tyann - 09-28-2023, 04:52 AM
RE: Program size limit (G1 vs G2) - tjurij - 09-28-2023, 12:45 PM
RE: Program size limit (G1 vs G2) - Tyann - 09-28-2023, 06:06 PM
RE: Program size limit (G1 vs G2) - komame - 09-28-2023, 07:34 AM
RE: Program size limit (G1 vs G2) - komame - 09-28-2023 01:40 PM
RE: Program size limit (G1 vs G2) - komame - 09-30-2023, 04:58 PM
RE: Program size limit (G1 vs G2) - komame - 10-16-2023, 07:15 AM
RE: Program size limit (G1 vs G2) - komame - 10-18-2023, 07:32 AM
RE: Program size limit (G1 vs G2) - komame - 10-21-2023, 07:37 AM



User(s) browsing this thread: 1 Guest(s)