-
Notifications
You must be signed in to change notification settings - Fork 675
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Patch meiheld #352
Patch meiheld #352
Conversation
I use this feature also for
For |
in bottle should not be patched for errors in the response (bottlepy/bottle#896). If you want to improve the performance by returning answers in json format, you can install @defnull maybe I can contribute something more |
Bottle is a lot faster than flask, this is also visible in other benchmarks. And yes, I'm not sure if this would be fair in a benchmark, though. Bottle is advertised as a zero-dependency framework, after all. And already faster than most ;) |
@defnull Why ? |
@agalera In fact, we wan this benchmark as simple as possible, as for now we are just using 3 rules, see #221 (comment) |
Bottle does only whats necessary and is written in a very dense, minimalistic way. I have also spent a lot of time to tune the important parts. For example, bottle bundles route regular expressions and can check up to 100 routes with a single Flask, on the other hand, is based on werkzeug, which is a great peace of software, but kind of over-engineered in many places. Lots of classes, abstractions, small functions, deep call stacks. This overhead adds up. In a compiled language, optimizers would get rid of the abstraction overhead. In Python, abstractions always come at a cost. There are faster WSGI frameworks than Bottle, but most of them 'cheat' by implementing parts in Cython or wrapping C libraries, or do way less than Bottle and are IMHO less useful. |
I understand the performance gap, but it's always useful to have some figures. |
* patch meinheld to replace default socket by built-in code (#352) * Code of conduct
* patch meinheld to replace default socket by built-in code (the-benchmarker#352) * Code of conduct
Hi,
Following bottlepy/bottle#1091, this
PR
patchmeinheld
.Thanks @agalera 🎉
Regards,