Author Topic: WCMatch Search Challenge  (Read 7126 times)

0 Members and 1 Guest are viewing this topic.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: WCMatch Search Challenge
« Reply #15 on: November 08, 2012, 08:09:53 AM »
Interesting pBe, your code is defendant  on lst being sorted as well.
I've reached the age where the happy hour is a nap. ()
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

BlackBox

  • King Gator
  • Posts: 3769
Re: WCMatch Search Challenge
« Reply #16 on: November 08, 2012, 05:01:00 PM »
I didn't know that  :)
It's nice, but keep in mind it uses more RAM than working line-by-line. It "shouldn't" be a problem though. I think we've found somewhere else that ALisp has a max string size of around 500MB: so unless your text file is larger than this, I don't see a reason to not use this idea.

Perhaps the inclusion of a simple vl-File-Size test expression would be prudent for that method.
"How we think determines what we do, and what we do determines what we get."