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

Sources memory improvement #281

Merged
merged 1 commit into from
Aug 10, 2020
Merged

Sources memory improvement #281

merged 1 commit into from
Aug 10, 2020

Conversation

vzamanillo
Copy link
Contributor

@vzamanillo vzamanillo commented Jul 29, 2020

Fixes #279

This branch comes from the same branch of #278 (commit 34fb96f)

I leave the pull request here to not to lose the local changes, we should merge it after the mentioned pull request we could also put it as a draft to release it after.

Main changes:

Decodes JSON instead of reading all the response content into memory and parsing with regex:

  • bufferover
  • certspotterold
  • crtsh
  • threatcrowd
  • threatminer

Read responses using bufio instead of ioutil.ReadAll

  • github
  • commoncrawl
  • hackertarget
  • waybackarchive

Fixes triple URL encoding:

  • commoncrawl
  • waybackarchive

Check it and tell me what you think!

@ehsandeep
Copy link
Member

I've removed the urlscan source, as they just announced official support of API, so we can add again using official API, Can you rebase this PR with master and confirm if this is ready to merge? @vzamanillo

@ehsandeep ehsandeep requested a review from Mzack9999 August 10, 2020 07:12
@ehsandeep ehsandeep added the Status: Review Needed The issue has a PR attached to it which needs to be reviewed label Aug 10, 2020
@Ice3man543
Copy link
Member

Ice3man543 commented Aug 10, 2020

@vzamanillo this PR looks good to me, however before merging could you please squash all the commits into one since their number is quite high. Thanks!

@ehsandeep ehsandeep merged commit 7f2fbf4 into projectdiscovery:master Aug 10, 2020
@ehsandeep ehsandeep removed the request for review from Mzack9999 August 10, 2020 13:57
@ehsandeep ehsandeep added Status: Completed Nothing further to be done with this issue. Awaiting to be closed. and removed Status: Review Needed The issue has a PR attached to it which needs to be reviewed labels Aug 10, 2020
@vzamanillo vzamanillo deleted the sources-memory-improvement branch August 10, 2020 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Completed Nothing further to be done with this issue. Awaiting to be closed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve sources memory consumption
3 participants