-
Notifications
You must be signed in to change notification settings - Fork 712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move Counters into Latest #3748
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice reduction 💯
I left some minor suggestions, otherwise feel free to merge!
a1b1bc1
to
cf37b0d
Compare
The only place Counters are used is in rendering, for the number of nodes under a topology, so the overhead of holding a unique data structure in every Node is unwarranted. Counters are not set in the probe, so we don't need any backwards-compatibility in report decoding. Similarly they are not set until after all nodes are merged, so we don't need that logic.
cf37b0d
to
c800ed1
Compare
It turned out this needed more work because |
It was relying on the previous behaviour of Merge() adding up counters.
c800ed1
to
ffa9071
Compare
The only place
Counters
are used is in rendering, for the number of nodes under a topology, so the overhead of holding a unique data structure in everyNode
is unwarranted.Counters are not set in the probe, so we don't need any backwards-compatibility in report decoding. Similarly they are not set until after all nodes are merged, so we don't need that logic.
(It was a bug if we did use it - merges are supposed to be idempotent).