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
lichun
V2EX  ›  Python

Python 的 vibora Web 框架为什么能做到这么快?

  •  
  •   lichun · 2018-07-09 11:31:15 +08:00 · 6945 次点击
    这是一个创建于 2089 天前的主题,其中的信息可能已经有所发展或是发生改变。
    14 条回复    2018-07-10 11:34:45 +08:00
    tkmiles
        1
    tkmiles  
       2018-07-09 11:36:48 +08:00
    看了一下 requirements.txt
    大概是这个原因吧: cython==0.28.3
    zeromake
        2
    zeromake  
       2018-07-09 11:57:31 +08:00
    因为其它的 python web 框架都是用的 python 来组织 req,resp,route,而 vibora 是使用 cython 的。
    lihongjie0209
        3
    lihongjie0209  
       2018-07-09 11:59:57 +08:00
    说实话, 你们选框架是看速度还是看生态?
    HypoChen
        4
    HypoChen  
       2018-07-09 12:01:27 +08:00
    @lihongjie0209 看需求吧。。。
    reus
        5
    reus  
       2018-07-09 12:04:03 +08:00
    cython 不就是 C …… 语法用 python 的而已,又没用 vm。
    还是 go 好。
    pabupa
        6
    pabupa  
       2018-07-09 14:24:32 +08:00
    好气呀,,,我还在看 Cython 呢……
    janxin
        7
    janxin  
       2018-07-09 15:02:45 +08:00
    框架是 cython
    omph
        8
    omph  
       2018-07-09 15:30:29 +08:00
    flask 吞吐量排第二,也不错嘛
    justff
        9
    justff  
       2018-07-09 15:32:30 +08:00
    性能真吊 期待正式版
    shijingshijing
        10
    shijingshijing  
       2018-07-09 16:10:12 +08:00 via iPhone
    @reus vm 是什么? virtual machine ?
    myyou
        11
    myyou  
       2018-07-09 16:18:42 +08:00
    看了 issue,作者说等发布了正式版后,会深入研究一下 async orm
    gjquoiai
        12
    gjquoiai  
       2018-07-09 19:36:06 +08:00
    跑分的话。。japronto 了解一下?
    mianju
        13
    mianju  
       2018-07-09 20:00:35 +08:00   ❤️ 1
    简单试了一下,坑很多,很多地方还没弄好。

    举个简单例子,Response 里只能传 bytes,传中文就 GG,必须要 encode,另外 web 前端显示,浏览器需要修改编码格式,不像 Django,直接默认解码就可以了。
    RicardoScofileld
        14
    RicardoScofileld  
       2018-07-10 11:34:45 +08:00
    靠 不说 tornado 性能好的吗
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1222 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 18:06 · PVG 02:06 · LAX 11:06 · JFK 14:06
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.