Skip to content

Conversation

@brandur
Copy link
Owner

@brandur brandur commented Feb 2, 2019

Adds a new unit test suite that specifically checks the bit-level
abbreviation for inet/cidr keys to help protect against subtle
regressions that may still result in mostly successful sorts (therefore
not breaking the main regression tests), but cause errors at the edges
or degraded performance.

This involves exposing a network_abbrev_convert_var function out of
network.c to aid with testability.

@brandur brandur force-pushed the brandur-inet-sortsupport-unit branch 6 times, most recently from 91f1559 to fdf5286 Compare February 6, 2019 19:40
@brandur brandur force-pushed the brandur-inet-sortsupport branch from 5f1f4cf to 6755550 Compare February 8, 2019 05:40
Implements SortSupport for the inet/cidr types in Postgres by devising
an abbreviated key representation for them that will faithfully
reproduce their existing sorting rules. This has the effect of typically
reducing the time taken for inet/cidr sorts by ~50-60%, and should show
a good improvement for the vast majority of real-world data sets.
@brandur brandur force-pushed the brandur-inet-sortsupport-unit branch from fdf5286 to 15172e0 Compare February 8, 2019 05:46
Adds a new unit test suite that specifically checks the bit-level
abbreviation for inet/cidr keys to help protect against subtle
regressions that may still result in mostly successful sorts (therefore
not breaking the main regression tests), but cause errors at the edges
or degraded performance.

This involves exposing a `network_abbrev_convert_var` function out of
`network.c` to aid with testability.
@brandur brandur force-pushed the brandur-inet-sortsupport branch from 6755550 to 5e0d24c Compare July 28, 2019 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants