V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2019-09-10 20:34:33 +08:00 · 2035 次点击
    这是一个创建于 1682 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    4 条回复    2019-09-11 17:37:11 +08:00
    clino
        1
    clino  
       2019-09-10 20:38:12 +08:00 via Android
    这和 django 有什么关系?
    优化执行效率,比如用其他语言实现然后 python 调用
    ohhe
        2
    ohhe  
       2019-09-10 20:40:03 +08:00
    放队列里异步?
    Sanko
        3
    Sanko  
       2019-09-10 20:47:20 +08:00 via Android   ❤️ 1
    celery
    shimingzhoudf
        4
    shimingzhoudf  
    OP
       2019-09-11 17:37:11 +08:00
    @ohhe 但是我需要在返回请求参数里面添加异步执行的东西
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5697 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 02:27 · PVG 10:27 · LAX 19:27 · JFK 22:27
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.