SeattleTestbed / attic

ARCHIVAL: Full mirror of SeattleTestbed's SVN in early 2014. We use GitHub since!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dylink import is extremely slow.

choksi81 opened this issue · comments

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.

monzum@TestUbuntu:~/exdisk/work/repy_v2_client$ time python repy.py restrictions.test dylink.repy ut_nm_addfiletovessel.repy
Time for import = 50.1873540878
Time for updatetime = 1.09592890739
Time for nmclient_createhandle = 1.03426098824
Time for nmclient_get_handle = 0.000111103057861
Time for nmclient_listaccessiblevessels = 1.02441596985
Time for addfiletovessel = 1.62042403221
Time for retrievefilefromvessel = 1.64809894562
Terminated

real    0m57.769s
user    0m5.568s
sys 0m2.060s

The file was importing the 3 files: time.repy, nmclient.repy and rsa.repy.