Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Function IsWord%(test$)
#2
Isn't the easiest, and fastest way, simply to load the entire file in one go and then parse it and save the data in an array?  Then just binary search on the index of the array until you find out if it's in there or not.  No random file access needed, no instr searches which go byte by byte looking for a match.  Just one array which is completely stored in memory and then a fast search for less than a few dozen binary comparisons to get the answer.

It's how we've did it countless times before on the forums, with a bazillion demos and examples to draw from out there.  Why is everyone feeling the need to look for some different way to do things now?  Just stick to the tried and true little routines that work so effortlessly.
Reply


Messages In This Thread
Function IsWord%(test$) - by bplus - 02-25-2026, 08:58 PM
RE: Function IsWord%(test$) - by SMcNeill - 02-25-2026, 09:27 PM
RE: Function IsWord%(test$) - by SMcNeill - 02-25-2026, 10:16 PM
RE: Function IsWord%(test$) - by SMcNeill - 02-25-2026, 10:25 PM
RE: Function IsWord%(test$) - by bplus - 02-25-2026, 11:34 PM
RE: Function IsWord%(test$) - by mdijkens - 02-26-2026, 02:51 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Zeller's congruence pass 3: test day-of-week calculation algorythms for accuracy TDarcos 0 1,100 10-23-2024, 05:04 PM
Last Post: TDarcos
  Test sorting algorithms eoredson 3 973 05-04-2023, 09:38 PM
Last Post: eoredson
  Long Date Function AtomicSlaughter 2 977 05-24-2022, 08:22 PM
Last Post: bplus

Forum Jump:


Users browsing this thread: 1 Guest(s)