iocage is slow at loading request

Not open for further replies.

Niels Erik

Aug 9, 2015
I have run into a Github all the way down problem..
Iocage is slow at starting on my system (CPU Intel(R) Atom(TM) CPU C2750 @ 2.40GHz), even the splash screen takes 4 sec to display..
All commands takes 3-4 sec. to execute no matter what..
I have done some investigation, and IOcage uses 2-3 secs loading the python module 'requests' used to download new jail templates.(kind of wget functionality)
The requests module again imports several crypto modules, and import cryptography.x509 seem to be the main culprit.

I have raised an issue on iocage , but they point the finger at requests and would like to close the issue as an upstream problem. See, and
Requests point at the optional imports. (e.g. x509, in my case it is a part of the FN11.1 distribution), and might look into it in the future..
I assume the the slow load of requests/x509 are a non issue in most applications.

The problem is that Iocage is an interactive program, and every command line take 3-4 sec. to execute.
And it is only 1 out of 1000 command line invocations where i actually need requests to download an new template.

Who should fix this ?
-FreeNAS could remove some crypto libs from their distribution.. (Not a good idea..)
-Iocage could implement lazy import some some rarely used libs..
-Requests could implement lazy import until the API functions are invoked..
-crypto libs could try to optimize their software..

FreeNAS 11.1 U4
Python 3.6
Iocage Version 1.0 ALPHA
Not open for further replies.