-
-
Notifications
You must be signed in to change notification settings - Fork 315
Fix ncpweb performance #2054
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
Fix ncpweb performance #2054
Conversation
and may need lots of optimization. Also, it introduces web UI quirks which should be corrected anyhow. For example: The nc-webui sidebar has a tick slowly acquired by exec nc-webui.sh which queries if the Apache2 NCP cfg is active. This should be queried during install or updates and put in nc-webui.cfg ACTIVE=true instead of slow runtime grok.
| trap 'cd /; rm -rf "${TEMPDIR}"' EXIT | ||
|
|
||
| echo -e "Downloading updates" | ||
| git clone --depth 20 -b "$BRANCH" -q https://github.com/nextcloud/nextcloudpi.git "$TEMPDIR" || { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Caution: NCP update source was changed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the reminder. I was not aware that I was still working on the PullRQ-ed branch. The above change was not meant to be pulled in here. Also, Github complains about signed-offs, thus I will cancel the request.
|
This pretty old and I don't think it's helpful any more. |
The https://localhost:4443 is very slow on a PI. Main reason is the very slow jq-1.6 on recent Armbians that is executed several times when "source etc/library.sh". One can generally install a faster alternative (see https://github.com/01mf02/jaq) but also this MR implements some fast caching for CPU hogging lines in library.sh