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

efficiency issues for large pages #6

Open
infinity0 opened this issue Nov 28, 2009 · 5 comments
Open

efficiency issues for large pages #6

infinity0 opened this issue Nov 28, 2009 · 5 comments

Comments

@infinity0
Copy link

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.

@infinity0
Copy link
Author

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.

@jgm
Copy link
Owner

jgm commented Nov 29, 2009

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.

@infinity0
Copy link
Author

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?

@jgm
Copy link
Owner

jgm commented Nov 29, 2009

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.

@xmik
Copy link

xmik commented Jul 7, 2017

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?

SuprDewd added a commit to AlgoWiki/gitit that referenced this issue Sep 21, 2019
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

3 participants