推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
Dustyposa
V2EX  ›  Python

如何加速 Python 的 import 模块的速度

  •  
  •   Dustyposa · Aug 20, 2019 · 2652 views
    This topic created in 2462 days ago, the information mentioned may be changed or developed.

    有一个模块,每次导入需要 1s 多,有没有办法加速导包呢?
    利用的
    python3.7 -X importtime -c "import mmmmm" 查看的导包时间

    2 replies    2019-08-26 09:53:48 +08:00
    qazwsxkevin
        1
    qazwsxkevin  
       Aug 21, 2019
    没有人有 comment?
    我也是大龄初学的,路过......
    弱弱地回复一下楼主,这个好像是换猛一点 CPU 的电脑就能解决的问题吧?!
    Dustyposa
        2
    Dustyposa  
    OP
       Aug 26, 2019
    @qazwsxkevin = - 这。。。。。 不能解决根本问题呀 我丢的服务器呢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3113 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 14:34 · PVG 22:34 · LAX 07:34 · JFK 10:34
    ♥ Do have faith in what you're doing.