awalsh128 / cache-apt-pkgs-action

Cache APT packages in GitHub Actions
Other
205 stars 35 forks source link

Verifying packages is slow #103

Closed stevenh closed 9 months ago

stevenh commented 1 year ago

We tried this action to improve our apt install performance in our workflows and once cached it was often actually slower than just performing the apt-get install.

I did a bit of digging and the main delay was "Verifying packages" process which is taking about 0.7s per package listed.

Testing locally apt-cache show ${package} is ~40ms where as on github is ~700ms.

Given this and the current flow we could be spending ~1.4s per package just calling apt-cache show.

awalsh128 commented 1 year ago

Re-opening as the fix introduced a regression break (see https://github.com/awalsh128/cache-apt-pkgs-action/pull/104#issuecomment-1785930399)

awalsh128 commented 11 months ago

I am in the process of moving the code to golang and started with this functionality.

https://github.com/awalsh128/cache-apt-pkgs-action/pull/117

I'll close this out once a release is ready.

awalsh128 commented 9 months ago

https://github.com/awalsh128/cache-apt-pkgs-action/releases/tag/v1.4.0 now has the Golang version of the querying component and the fix is incorporated.