mandatoryprogrammer / mandatoryprogrammer/sonar.js

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

Open
#2 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
JavaScript
Stars
551
Forks
76
PR merge metrics
No merged PRs in 30d

Description

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:

``` js
var resource_table = {
'192.168.1.2': ['/resource.css', '/resource.png', '/resource.jpg' ],
'192.168.1.3': ['/resource.css', '/other.png', '/example.jpg' ],
}
```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are identified in the issue, so first locate the code that requests resources from hosts and trace how repeated checks are initiated. Done means maintaining per-host knowledge of existing and missing resources and avoiding a second network request for a resource already recorded.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
networking, security
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.