Closed dlbbld closed 3 years ago
Is there some feedback here? I try some simple math: The second games has around 30 times more moves than the first. But to load, it takes over 200 times longer. I am sure there is only some small problem here and this can be much improved.
I found the issue, will be fixed in the next released.
I expect it even to be the other way round - the performance per move to improve with larger files. File stream is high-speed, and file handling overhead counts less in proportion with more moves.
Fixed in version 1.2.2
The performance is right now. But as it happens right in this game, there is a problem with repetition detection. This problem is not due to the performance improvement, which should be fine, but due to #39 still not being fixed and throwing new errors. I'll mention it there.
When loading a PGN with 250 moves, this takes a second. However, when loading a PGN with 9'000 moves, this goes off. The time it takes more is not in proportion to the additional moves and is much too long. Please see the attached PGN (I adapted the second for import).
Of course a game with 9'000 moves is not realistic, but this long time is unexpected. I hope this observation helps to improve your API.
Output is
longest.pgn.txt nikolic_arsovic_1989.pgn.txt