News for hackers. Stuff that matters.
Re:Sourcehut welcomes Bitbucket refugees by hmnom on Friday August 23, 2019 @09:00AM (#20777030)
https://github.com/pallets/flask

https://github.com/pallets/jinja

0% C

Also 800 ms is NOT a reasonable response time to generate what basically is a bunch of text, that is absurd, but I guess this is the baseline in 2019.

I trust all IO is cached. The author can confirm it. This is just how slow Python is.

Re:Sourcehut welcomes Bitbucket refugees by ignaloidas on Friday August 23, 2019 @02:29PM (#20780859)
Almost none of the IO of that page is cached actually[0]. The only thing I'm sure that is cached is the templates themselves. I'm pretty sure that neither git lookups, nor DB accesses are cached, where you can save time. And mind you, this is served from a single data center in USA, and the latency can already eat up a lot of that. I in Europe have 300ms ping to it, so it might be that you are simply far away from the physical location.

[0] https://git.sr.ht/~sircmpwn/git.sr.ht/tree/master/gitsrht/bl...

Re:Sourcehut welcomes Bitbucket refugees by wyldfire on Friday August 23, 2019 @10:17AM (#20777873)
Switching to PyPy is likely to improve the overall performance if it's not database or I/O bound.