You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.
Thus, the POST /play/rav API endpoint is slow because it is currently using the getFen() method to calculate the FEN positions. The example below takes a few seconds to calculate about 200 FEN positions.
At this moment two API queries are being used.
GET /annotations/games
POST /play/rav
The performance of the RAV reader can be improved by removing the POST /play/rav call from the user interface on the one hand. Then, the information for the RAV reader including the FEN positions can be precalculated and added to data/annotations/games.json.
This way one API query would be used:
GET /annotations/games
Happy learning and coding!
The text was updated successfully, but these errors were encountered:
The
getFen()
method inChess\Play\RavPlay
can be quite slow if a movetext contains a significant amount of chess moves across multiple variations.See:
Thus, the POST /play/rav API endpoint is slow because it is currently using the
getFen()
method to calculate the FEN positions. The example below takes a few seconds to calculate about 200 FEN positions.At this moment two API queries are being used.
GET /annotations/games
POST /play/rav
The performance of the RAV reader can be improved by removing the
POST /play/rav
call from the user interface on the one hand. Then, the information for the RAV reader including the FEN positions can be precalculated and added to data/annotations/games.json.This way one API query would be used:
GET /annotations/games
Happy learning and coding!
The text was updated successfully, but these errors were encountered: