Skip to content
This repository was archived by the owner on Jun 20, 2024. It is now read-only.

Hold DNS entries sorted case-insensitively until just before sending#1615

Merged
rade merged 8 commits into1.2from
1603-resort-in-encode
Nov 2, 2015
Merged

Hold DNS entries sorted case-insensitively until just before sending#1615
rade merged 8 commits into1.2from
1603-resort-in-encode

Conversation

@bboreham
Copy link
Contributor

Instead of sorting when creating the outbound GossipData object, we sort in Encode().
Fixes #1603 and #1610

Since the extended unit tests revealed that it is expensive to re-compute ToLower() every time we look at a hostname, this PR also changes this to compute the lower-case version on entry to the data structure and hold on to it thereafter.

(replacement for #1611 which was against the wrong branch)

@bboreham
Copy link
Contributor Author

bboreham commented Nov 2, 2015

Yay! Unit tests passed!

@bboreham bboreham force-pushed the 1603-resort-in-encode branch from 6ee8e76 to 2bf895a Compare November 2, 2015 17:27

This comment was marked as abuse.

@rade rade force-pushed the 1603-resort-in-encode branch from 2bf895a to b80c134 Compare November 2, 2015 20:41
@rade rade self-assigned this Nov 2, 2015
rade added a commit that referenced this pull request Nov 2, 2015
Hold DNS entries sorted case-insensitively until just before sending

Fixes #1603 and #1610.
@rade rade merged commit 77c7963 into 1.2 Nov 2, 2015
@rade rade added this to the 1.2.1 milestone Nov 3, 2015
@awh awh deleted the 1603-resort-in-encode branch November 9, 2015 16:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants