Skip to content
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

Implement a cache for metrics #38

Closed
LouisJenkinsCS opened this issue Nov 9, 2018 · 1 comment
Closed

Implement a cache for metrics #38

LouisJenkinsCS opened this issue Nov 9, 2018 · 1 comment

Comments

@LouisJenkinsCS
Copy link
Collaborator

A lot of the times, metrics are reused and can therefore be recycled when used later. It would be nice to have something like, say, memcached which maps keys to values in a way that is relatively efficient. That way it be something like...

const componentsKey = "connected components";
var components : ComponentsMetric;
if metrics.contains(componentsKey) {
   components = metrics.get(componentsKey);
} else {
   components = getComponents();
   metrics.put(componentsKey, components);
}

That can be relatively useful in the future and even in the present, as testing on DNS data commonly requires metrics to be passed around, which is very awkward right now.

@github-actions
Copy link

This issue is stale and should either be closed or eventually resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant