News for hackers. Stuff that matters.
Re:Show HN: Python framework is faster than Golang Fiber by Thaxll on Tuesday January 10, 2023 @11:44AM (#34327556)
When I see that: https://github.com/cirospaciari/socketify.py/blob/main/bench...

It's kind of hopeless, Python still needs to fork per core to get any performance? So if you have 8 cores you're actually running 8 processes, so 8 DB pool etc ...

Re:Show HN: Python framework is faster than Golang Fiber by simonw on Tuesday January 10, 2023 @11:56AM (#34327770)
Why does that feel hopeless to you?

Running one process per core has been working well for scaling huge websites for decades at this point.

Re:Show HN: Python framework is faster than Golang Fiber by cirospaciari on Tuesday January 10, 2023 @11:58AM (#34327813)
nodejs do this and actually Go fiber uses prefork to do this too
Re:Show HN: Python framework is faster than Golang Fiber by cirospaciari on Tuesday January 10, 2023 @11:46AM (#34327590)
Python GIL is the problem for multithreading, but I think I have a solution to not need 8 DB pools, soon o will post about it. But yeah it's a waste
Re:Show HN: Python framework is faster than Golang Fiber by tomwojcik on Tuesday January 10, 2023 @12:00PM (#34327836)
Oh, I have a pretty fresh news for you.

https://github.com/python/peps/pull/2955

Re:Show HN: Python framework is faster than Golang Fiber by cirospaciari on Tuesday January 10, 2023 @12:22PM (#34328221)
WOW that's awesome!
Re:Show HN: Python framework is faster than Golang Fiber by jopython on Thursday January 12, 2023 @03:54PM (#34360111)
I wouldn't be excited about PEPs. GIL has been talked about for umpteen years.