V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  3085570450tt  ›  全部回复第 5 页 / 共 5 页
回复总数  89
1  2  3  4  5  
@drymonfidelia 你可以理解为完全兼容 sqlite, 只是加上了一些其他的特性,比如异步等,是可以直接进行替换的
@3085570450tt 那个 benchmark 的网站忘记贴上去了,https://web-frameworks-benchmark.netlify.app/result?l=python
可以参考以下这篇文章: https://www.tornadoweb.org/en/branch5.1/wsgi.html#running-wsgi-apps-on-tornado-servers 。总之说,使用 wsgicontainer 的性能会低于使用 `gunicorn` 或者 `uwsgi` 等专业的 wsgi 服务器。如果你想使用 flask 写异步的话,倒不至于这么麻烦,https://flask.palletsprojects.com/en/stable/async-await/ flask 也支持了初步的异步,或者直接使用 quart (完全异步版 flask) 。或者你想换新能高一点的,可以去这个网站看一下 benchmark 自行选择。还有 sqlite 不支持异步,如果你想用 sqlite, 又想使用异步接口的话,可以看看这个 limbo https://turso.tech/blog/introducing-limbo-a-complete-rewrite-of-sqlite-in-rust
可以试试 ripgrep
突然想到了名为 [pyforest · PyPI]( https://pypi.org/project/pyforest/) 的 python 包,这个包就是帮你自动导入的,不会进行安包。
pyforest 中用了一些 lazy_imports 的概念,或许可以做一些参考。
1  2  3  4  5  
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2662 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 17ms · UTC 11:24 · PVG 19:24 · LAX 04:24 · JFK 07:24
Developed with CodeLauncher
♥ Do have faith in what you're doing.