jrabbit / pyborg-1up

:robot: A modern overhaul of an old favorite irc bot for multiple platforms
https://pyborg.readthedocs.io/en/latest/
GNU General Public License v3.0
33 stars 12 forks source link

Don't import all the modules at once in the cli #64

Closed jrabbit closed 4 years ago

jrabbit commented 6 years ago

Might speed things up or reduce memory consumption if we conditionally load

jrabbit commented 5 years ago

click might already do some of this? Needs more research.

jrabbit commented 4 years ago

https://github.com/asottile/importtime-waterfall & http://www.softwareishard.com/har/viewer/ got us a big win here

jrabbit commented 4 years ago

https://github.com/jrabbit/pyborg-1up/commit/4376ef72be0f5f6b52f328b5a3a111a05e30e43c