Post Reply 
How much memory may a HPPL program use on a G2?
09-20-2023, 06:57 PM (This post was last modified: 09-20-2023 07:54 PM by komame.)
Post: #80
RE: How much memory may a HPPL program use on a G2?
Hi Tyann,

(09-20-2023 12:15 PM)Tyann Wrote:  But yes, it works, a STRING and an EXPR are enough, I convert my sub-list into a string, I convert with your convAccents routine then an EXPR and I find my list and I test each element.
??e??r??? now takes <12s.
And I can keep my sub-list organisation, which is very useful for modifying the dictionary.
Could you show the code you use to convert sub-lists into a string and vice versa?

(09-20-2023 12:15 PM)Tyann Wrote:  Thanks again Komane, I've learned a lot in the last few days thanks to you.
Thank you. I'm very pleased to hear that, and I'm glad that this short collaboration has brought you some benefits

(09-20-2023 11:31 AM)Tyann Wrote:  But yes, you do the conversionaccent on all the words in a single operation in a string, so there's no point.
As I predicted, this optimization for dictionary conversion didn't yield any benefits, but the idea of shifting the start of iteration for patterns starting with known letters and then '?' characters yielded very good results:

     a??? => 0.021 - 0.023s (123 words)
    a???? => 0.078 - 0.106s (423 words)
   a????? => 0.255 - 0.291s (1101 words)
  a?????? => 0.670 - 0.841s (2151 words)
 a??????? => 1.461 - 1.719s (3167 words)
a???????? => 2.363 - 2.725s (3839 words)
sc???r??? => 0.597 - 0.618s (9 words)
p????eurs => 0.975 - 1.171s (29 words)

Piotr Kowalewski
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: How much memory may a HPPL program use on a G2? - komame - 09-20-2023 06:57 PM



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