V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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 · Jul 9, 2018 · 7435 views
    This topic created in 2849 days ago, the information mentioned may be changed or developed.
    14 replies    2018-07-10 11:34:45 +08:00
    tkmiles
        1
    tkmiles  
       Jul 9, 2018
    看了一下 requirements.txt
    大概是这个原因吧: cython==0.28.3
    zeromake
        2
    zeromake  
       Jul 9, 2018
    因为其它的 python web 框架都是用的 python 来组织 req,resp,route,而 vibora 是使用 cython 的。
    lihongjie0209
        3
    lihongjie0209  
       Jul 9, 2018
    说实话, 你们选框架是看速度还是看生态?
    Hyponet
        4
    Hyponet  
       Jul 9, 2018
    @lihongjie0209 看需求吧。。。
    reus
        5
    reus  
       Jul 9, 2018
    cython 不就是 C …… 语法用 python 的而已,又没用 vm。
    还是 go 好。
    pabupa
        6
    pabupa  
       Jul 9, 2018
    好气呀,,,我还在看 Cython 呢……
    janxin
        7
    janxin  
       Jul 9, 2018
    框架是 cython
    omph
        8
    omph  
       Jul 9, 2018
    flask 吞吐量排第二,也不错嘛
    justff
        9
    justff  
       Jul 9, 2018
    性能真吊 期待正式版
    shijingshijing
        10
    shijingshijing  
       Jul 9, 2018 via iPhone
    @reus vm 是什么? virtual machine ?
    myyou
        11
    myyou  
       Jul 9, 2018
    看了 issue,作者说等发布了正式版后,会深入研究一下 async orm
    gjquoiai
        12
    gjquoiai  
       Jul 9, 2018
    跑分的话。。japronto 了解一下?
    mianju
        13
    mianju  
       Jul 9, 2018   ❤️ 1
    简单试了一下,坑很多,很多地方还没弄好。

    举个简单例子,Response 里只能传 bytes,传中文就 GG,必须要 encode,另外 web 前端显示,浏览器需要修改编码格式,不像 Django,直接默认解码就可以了。
    RicardoScofileld
        14
    RicardoScofileld  
       Jul 10, 2018
    靠 不说 tornado 性能好的吗
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4948 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 52ms · UTC 09:57 · PVG 17:57 · LAX 02:57 · JFK 05:57
    ♥ Do have faith in what you're doing.