solo-io / go-utils

golang utilities
Apache License 2.0
110 stars 18 forks source link

Priority Sort Struct #483

Closed jackstine closed 1 year ago

jackstine commented 2 years ago

Adding in Priority Sort Struct

solo-changelog-bot[bot] commented 2 years ago

Issues linked to changelog: https://github.com/solo-io/gloo/issues/6337

EItanya commented 2 years ago

My other question is: how does this relate to: https://github.com/solo-io/solo-kit/pull/473/files

jackstine commented 2 years ago

My other question is: how does this relate to: https://github.com/solo-io/solo-kit/pull/473/files

Just keeps priority of the TypeURLs without the cost of sorting every time we call SetSnapshot().

Here is the go1.16 version PR passing in solo-kit.