推荐学习书目
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
jko123
V2EX  ›  Python

用了 flask-cache 的前后对比

  •  
  •   jko123 · Aug 15, 2017 · 3611 views
    This topic created in 3218 days ago, the information mentioned may be changed or developed.

    用 flask 写的视频站,估计读写数据库太频繁,cpu 占用一直很高!

    基本上有多少吃多少,换过 DO、linode、vultr 等 vps,各种配置都换过,基本没卵用,cpu 有多少就占用多少!

    然后今天用上 flask-cache 之后,cpu、内存、硬盘 IO 等占用下降明显!

    4 replies    2017-08-16 09:42:14 +08:00
    RandomK
        1
    RandomK  
       Aug 15, 2017
    @chen2016 请问下,这是哪家公司的主机监控页面?
    jko123
        2
    jko123  
    OP
       Aug 15, 2017   ❤️ 1
    gotounix
        3
    gotounix  
       Aug 15, 2017   ❤️ 1
    flask-cache 这个库年久失修啊,现在应该是用它的 fork flask-caching 吧。
    tcpdump
        4
    tcpdump  
       Aug 16, 2017
    有什么坑分享一下么
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5445 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 08:13 · PVG 16:13 · LAX 01:13 · JFK 04:13
    ♥ Do have faith in what you're doing.