Post Reply 
How much memory may a HPPL program use on a G2?
09-21-2023, 04:27 AM (This post was last modified: 09-21-2023 04:32 AM by komame.)
Post: #85
RE: How much memory may a HPPL program use on a G2?
(09-21-2023 04:19 AM)jte Wrote:  
(09-19-2023 05:19 AM)Tyann Wrote:  
For REPLACE, I could see something like REPLACE(str1,{"é", "è", "ê"}, "e");

Yes, this seems quite natural. At least to us two, as when thinking about the more general REPLACE semantics, this popped into my head too. But then I thought: wouldn't it be nice to be able to do multiple rules of this sort? And that leads to REPLACE(str1,{{"é", "è", "ê"},{"à","â"}}, {"e","a"})! Hmmm...
The solution proposed by Tyann (a single multi-rule) makes sense and will indeed be more efficient. However, if you add more rules, we go back to the topic of iteration because each multi-rule must be considered independently, and here there will be no performance gain beyond avoiding the PPL call itself. But it's hard for me to assess how much overhead there is in this case.

Nevertheless, I think you can start implementing Tyann's version. Will it be ready by tomorrow? Big Grin

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-21-2023 04:27 AM



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