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

Memoize the checking of resources on hosts to save on network requests #2

Open
mandatoryprogrammer opened this issue Aug 25, 2015 · 0 comments

Comments

@mandatoryprogrammer
Copy link
Owner

sonar should never make two requests for a resource on a host. It should keep a running table for resources that it knows exist/doesn't exist and then check the table before potentially wasting time with another network operation.

For example:

var resource_table = {
    '192.168.1.2': ['/resource.css', '/resource.png', '/resource.jpg' ],
    '192.168.1.3': ['/resource.css', '/other.png', '/example.jpg' ],
}
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