-
Notifications
You must be signed in to change notification settings - Fork 20
Dylink import is extremely slow. #136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I broke down the time for imports a little further. Note that this does not include the time for every single import, but the ones that are used for just time.repy (as that was taking the longest). |
Since imports go through dylink.repy now, they are subject to the usual resource restrictions just like any other Repy program. If I correctly resolved the (sub-)imports, then ut_nm_addfiletovessel.repy imports 20 libraries totaling 180kB. With each openfile call consuming 4kB of fileread, plus the overall file sizes, the usual 10kBps file read restriction makes these imports take approximately 25 seconds. |
I think the system is working as designed. We need to up the values in the restrictions files if they are too low. |
While running the nodemanager unit tests, I found that each of the unit test was taking about 1 minute to run (which is extremely slow). After timing the unit tests, I found that most of the time was spent in importing the library files. Below is a breakdown of the time for a sample unit test ut_nm_addfiletovessel.repy.
The file was importing the 3 files: time.repy, nmclient.repy and rsa.repy.
The text was updated successfully, but these errors were encountered: