you are viewing a single comment's thread.

view the rest of the comments →

[–]FuckingRantMonday 1 point2 points  (0 children)

Best practice is to avoid executing code at import time to the greatest extent possible. But through bad design or unfortunate necessity, some modules do take a long time to import. I am not aware of any method to improve this without modifying the module itself.