I'm having trouble with sc-server taking up a lot of CPU time. I've traced the problem down to the thread that is started by the SC::Rack::Builder.monitor_project! method. Apparently every 2 seconds it goes through every file in the project, checking if something has changed?
Right now I have commented out the line did_reload = reload_project! in the call method. I rather restart sc-server every time I add a new file to my project (which is not that often) than have it hog my CPU. It would be nice though if there was a project config or a command line option that would disable monitoring so that I didn't have to edit the source code.
I'm having trouble with sc-server taking up a lot of CPU time. I've traced the problem down to the thread that is started by the
SC::Rack::Builder.monitor_project!
method. Apparently every 2 seconds it goes through every file in the project, checking if something has changed?Right now I have commented out the line
did_reload = reload_project!
in thecall
method. I rather restart sc-server every time I add a new file to my project (which is not that often) than have it hog my CPU. It would be nice though if there was a project config or a command line option that would disable monitoring so that I didn't have to edit the source code.