dCore Import Debian Packages to Mountable SCE extensions > dCore X86
Why does sce-update take so much time (even more than sce-import)?
sm8ps:
Now that I have remembered that sce-update is a separate extension and thus it does not make sense waiting for a new release candidate (I am either old-school or old and slow to adapt or all of it) I shall test my case in the next few days and report back.
sm8ps:
Here are my new test results. The new sce-update does show any change in performance.
As before, case A) uses three (non-relevant) PPAs whereas case B) uses the same three PPAs plus 12 Ubuntu repositories (cf. previous posts for detail).
Old sce-update for reference:
--- Code: ---sce-update -crn X-LIST A) 3'30" B) 7'00"
sce-update -rn X-LIST A) 4'56" B) 13'30"
--- End code ---
New sce-update:
--- Code: ---sce-update -crn X-LIST A) 0'47" B) 6'48"
sce-update -rn X-LIST A) 2'38" B) 13'18"
--- End code ---
For comparison the time for importing the extension. I have not tested case B) yet.
--- Code: ---sce-import -rpln A) 1'55"
--- End code ---
The situation was set up such that by the changing of the repos there was a definite need for update. The timing was taken upon changing from case A to B or vice versa.
My conclusion is that the new update routines do have a considerable effect. This is great! Case A) shows that the time for importing is much lower than the importing as was hoped for. The result look rather solid to me and they add up as expected.
I cannot explain why the effect in case B) is so small. Does anybody have a clue?
Jason W:
When sce-update or sce-import is dealing with extra repos, it uses the slower awk routine in fetching package data rather than the faster grep routine that is used with the standard and security update repos. The Packages files of the standard and security repos that are enabled by default have been formatted to where grep can be used. Any Packages files from extra repos have not been formatted, so the awk routine must be used, which is not as fast but accurately deals with them. So there is a performance penalty in using extra repos both in import and update. The more extra repos would mean slower performance depending on the size of the Packages files of those extra repos.
sm8ps:
Okay, that makes perfect sense. Thank you, Jason, master of Awk (among many other martial arts), for sharing your insight!
Stretching the topic of this thread and combining it with the decision to only support LTS versions plus the current release (I cannot find the thread at the moment): would it make sense (also in terms of effort) to pre-format also the {main, backports, update}-{multiverse, restricted, universe} repo lists, at least for the LTS version?
sm8ps:
Also for limiting the expectations, I would like to add that the official repos are at the same time relevant for many users and huge in size. Both aspects make them stick out among the various other repos like PPAs etc.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version