Skip to content
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

Performance issues uncovered with weighttp #23

Open
ezyang opened this issue Feb 14, 2016 · 1 comment
Open

Performance issues uncovered with weighttp #23

ezyang opened this issue Feb 14, 2016 · 1 comment

Comments

@ezyang
Copy link

ezyang commented Feb 14, 2016

A few years ago I did some benchmarking of happstack using weighttp, and ran into some curious issues, which I reported here: http://redmine.lighttpd.net/issues/2554#change-8686

The maintainer of weighttp did some very nice analysis on happstack, and identified some places where happstack can do better. Would be worth looking at closely and trying to address!

@stepcut
Copy link
Member

stepcut commented Feb 17, 2016

Nice. Some of the issues he identified are buried deep in the GHC RTS. But it looks like there is some low hanging fruit there as well. For example this line:

https://github.com/Happstack/happstack-server/blob/master/src/Happstack/Server/Internal/Handler.hs#L283

Probably results in some of the excessive system calls. We should probably concat the bytestrings and make a single system call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants