arkOScloud / core

arkOS core system management libraries
GNU General Public License v3.0
61 stars 13 forks source link

Slow arkosctl (due to pkg_resources) #21

Open pomarec opened 7 years ago

pomarec commented 7 years ago

Following this support discussion

arkosctl is slow due to a problem in requests that is imported line 15 in arkos/utilities/utils.py. We are talking about ~5sec to launch any arkosctl command on a scaleway server.

See :

A possible workaround lies in https://github.com/ninjaaron/fast-entry_points

pomarec commented 7 years ago

I can't get an proper environment to test it but i just reference a preview of the PR : https://github.com/pomarec/core/commit/df7b94ccbb962b3932d5c56e751fd191591b4f83

pomarec commented 7 years ago

This does not seem to have any impact. And to be honest I would not understand why it would have an impact.

peakwinter commented 7 years ago

Hm, did you try this with the performance/timer thing you were using before? And the result was the same?

pomarec commented 7 years ago

Sorry i can't remember. I'll try again when I'll get the time.