-
-
Notifications
You must be signed in to change notification settings - Fork 226
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
efficiency issues for large pages #6
Comments
after some experimenting i've managed to work out that it's a particular string that's making pandoc take ages to convert... i'll file a bug there instead. |
It might be worth using System.Timeout.timeout to wrap the page conversion, so that if pandoc has one of its rare exponential moments, gitit can return a "page timed out" error instead of locking up the processor. |
i dunno how haskell works, but this sort of stuff could also be done in a separate thread (or equivalent) so that other requests from other users can be handled in the mean time? |
happstack-server should do that anyway. But it's still bad to have one process that's taking up huge amounts of CPU for a long time, and it's bad for the user to request a page and have no response for a long time. |
Hi, I might have encountered this issue too. I think, I found server timeout hardcoded here: https://github.com/jgm/gitit/blob/0.12.2.1/gitit.hs#L92 . Is there a chance this will be settable by end user? |
If i create a large page (~60K) then gitit takes a very long time to generate it.
top
shows ~80-90% CPU usage by gitit.The text was updated successfully, but these errors were encountered: