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

django 请求

  •  
  •   shimingzhoudf · Sep 10, 2019 · 3342 views
    This topic created in 2617 days ago, the information mentioned may be changed or developed.

    django 一个请求需要把一份 pdf 加高亮,变成图片 pdf,耗得时间需要 5-6s 挺久的,有啥优化的方案?感谢

    4 replies  •  2019-09-11 17:37:11 +08:00
    clino
    clino
    Sep 10, 2019 via Android
    1
    这和 django 有什么关系?
    优化执行效率,比如用其他语言实现然后 python 调用
    ohhe
    ohhe
    Sep 10, 2019
    2
    放队列里异步?
    Sanko
    Sanko
    Sep 10, 2019 via Android❤️1
    3
    celery
    shimingzhoudf
    shimingzhoudf
    OP
    Sep 11, 2019
    4
    @ohhe 但是我需要在返回请求参数里面添加异步执行的东西
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3692 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 09:57 · PVG 17:57 · LAX 01:57 · JFK 04:57
    ♥ Do have faith in what you're doing.