News for hackers. Stuff that matters.
Re:New Python REST API and CLI micro-framework by voltagex_ on Thursday February 18, 2016 @11:48PM (#11131610)
Why is it way faster than Flask? Are there any changes that can be made to Flask to improve the speed?

Would it be silly to use both Flask and Hug?

Re:New Python REST API and CLI micro-framework by timothycrosley on Thursday February 18, 2016 @11:54PM (#11131639)
There's a bunch of reasons, but they really come down to a focus on memory efficiency and knowledge of how certain things perform on Python (using hasattr instead of isinstance where applicable, using __slots__, only processing things when it's clear they need to be processed). And then for extra measure: Cython compilation. You can see a competing frameworks benchmarks showing the result of all this work here: http://pycnic.nullism.com/
Re:New Python REST API and CLI micro-framework by voltagex_ on Friday February 19, 2016 @03:44AM (#11132392)
That's really cool, thanks.