Post Reply 
How much memory may a HPPL program use on a G2?
09-20-2023, 04:55 AM
Post: #76
RE: How much memory may a HPPL program use on a G2?
Bonjour
En regardant vôtre code, il m'est venu une idée d'optimisation, en effet ma boucle de comparaison des lettres commençais toujours à 1 et j'ai vu que vous commencez à 2 lorsque la première lettre est connue.
En fait on peut pousser le raisonnement plus loin :
Pour P???e?? la boucle peut commencer à 5, pour ??e??r??? elle commencera à 3 et pour sc???es
elle devra commencer à 2.
J'ai fait cela ce matin, et par exemple pour la recherche p????eurs le temps est /2.
Autre chose que vous pouvez faire dans la boucle de convaccent mettre un test :
Code:

IF MAX(ASC"str"))<223 THEN BREAK; END
Autrement dit si il n'y a pas ou plus d'accent quitter la boucle des 'replace'.


Hello
Looking at your code, I got an idea for optimisation. My letter comparison loop always started at 1 and I saw that you start at 2 when the first letter is known.
In fact, you can take the reasoning a step further:
For P???e?? the loop can start at 5, for ??e??r??? it will start at 3 and for sc???es
it must start at 2.
I did this this morning, and for example for the search p????eurs the time is /2.
Another thing you can do in the convaccent loop is to put in a test:
Code:

IF MAX(ASC "str"))<223 THEN BREAK; END
In other words, if there are no or no more accents, leave the 'replace' loop.

Sorry for my english
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? - Tyann - 09-20-2023 04:55 AM



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