Numworks Python Memory Leak? - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: Not HP Calculators (/forum-7.html) +--- Forum: Not remotely HP Calculators (/forum-9.html) +--- Thread: Numworks Python Memory Leak? (/thread-20000.html) |
Numworks Python Memory Leak? - toml_12953 - 05-23-2023 05:06 PM The code below gets a lower score every time I run it on my Numworks N110 with OS 20.4.0 The code is converted from a C program at: https://www.thimet.de/CalcCollection/CalcPerformance.html BTW, the formula he gives for the index is for one loop only. To get the numbers he shows in his results table, the formula is P=34 / T * LOOPS Code: from math import * Run 1 0.8809818999686783 Loops: 5000 Time: 6.045 seconds Index: 28122.42 Run 2 0.8809818999686783 Loops: 5000 Time: 7.154 seconds Index: 23762.93 Run 3 0.8809818999686783 Loops: 5000 Time: 7.520 seconds Index: 22606.38 etc. RE: Numworks Python Memory Leak? - FLISZT - 05-23-2023 07:40 PM Hello, Maybe it's because the garbage collector is not optimized enough. (?) |