Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Actually look up required remote server key IDs #452

Merged
merged 1 commit into from
Dec 21, 2015
Merged

Conversation

leonerd
Copy link
Contributor

@leonerd leonerd commented Dec 18, 2015

This fixes SYN-558

set.union() is a side-effect-free function that returns the union of two
sets. This clearly wanted .update(), which is the side-effecting mutator
version.


This also makes sytest run somewhat faster too; without:
real 1m9.419s

with:
real 1m5.685s

I expect a realworld test would show a much larger improvement here; because synapses under sytest spend a huge amount of their time just provisioning new testing users who hardly ever send federated traffic, whereas realworld cases would send a lot more federation about the place.


Also some quick stats of client logs in sytest:

$ grep "/key/v2/server/" log-broken.log | grep GET | wc -l
31

$ grep "/key/v2/server/" log-fixed.log | grep GET | wc -l
8

set.union() is a side-effect-free function that returns the union of two
sets. This clearly wanted .update(), which is the side-effecting mutator
version.
NegativeMjark added a commit that referenced this pull request Dec 21, 2015
Actually look up required remote server key IDs
@NegativeMjark NegativeMjark merged commit 42a7a09 into develop Dec 21, 2015
@richvdh richvdh deleted the paul/SYN-558 branch December 1, 2016 14:09
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