Skip to content

perf: avoid unnecessary sorting of lookup paths when resolving a request

feistel requested to merge feistel/gitlab-pages:refactor/avoid-lp-sort into master

What does this MR do?

This was discovered while trying to reduce allocations (sort.Slice takes an interface which makes the slice escape to the heap) but has the nice side effect of improved performance and better scaling of lookup paths.

TODO

Edited by feistel

Merge request reports