You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This line is relatively slow because it uses a regexp. That's fine, but unfortunately we end up calling it several million times during a build because it gets called inside sortPackages and filterPackages.
See here:
A very lazy fix would be to memoize parseVersion because we call parseVersion with identical strings repeatedly, but we could also probably do a lot better by parsing everything before we start sorting.
I logged a bunch of the inputs to parseVersion for a build of go images, this is what I saw:
This line is relatively slow because it uses a regexp. That's fine, but unfortunately we end up calling it several million times during a build because it gets called inside sortPackages and filterPackages.
See here:
A very lazy fix would be to memoize parseVersion because we call parseVersion with identical strings repeatedly, but we could also probably do a lot better by parsing everything before we start sorting.
I logged a bunch of the inputs to
parseVersion
for a build of go images, this is what I saw:The text was updated successfully, but these errors were encountered: