Improve performance writing BC/INI files #425
Labels
type: enhancement
Improvements to existing functionality
type: refactor
Refactor code, no functional changes
Is your feature request related to a problem? Please describe.
Writing big BC files can take quite some time. 100000 rows take about 30 seconds.
@veenstrajelmer noticed that the conversion from the ForcingModel to the serializable data takes the longest, while the writing of the file is very fast.
Describe the solution you'd like
The script from Jelmer can be used for performance testing:
https://github.com/openearth/dfm_tools/blob/master/tests/examples_workinprogress/workinprogress_hydrolib_bcwriteperformance.py
This code can be pasted into a test file as follows:
test_performance.txt
The test can be run with printing statements via the terminal as follows:
pytest tests\test_performance.py -rpP
The text was updated successfully, but these errors were encountered: