Skip to content

Implement multiple performance enhancements #70 - #110

Merged
tdruez merged 11 commits into
mainfrom
70-performances
Mar 15, 2021
Merged

Implement multiple performance enhancements #70#110
tdruez merged 11 commits into
mainfrom
70-performances

Conversation

@tdruez

@tdruez tdruez commented Mar 12, 2021

Copy link
Copy Markdown
Contributor
  • Run celery worker with the "threads" pool implementation.
  • Implement parallelization with ProcessPoolExecutor for file and package scans.
  • Add a SCANCODE_PROCESSES settings to control the multiprocessing CPUs count.
  • Optimize "tag" type pipes using the update() API in place of save() on the QuerySet iteration.
  • Refactor make_codebase_resource to remove the extra get query

tdruez added 11 commits March 8, 2021 09:42
Signed-off-by: Thomas Druez <tdruez@nexb.com>
…ge scans #70

Signed-off-by: Thomas Druez <tdruez@nexb.com>
….objects #70

Signed-off-by: Thomas Druez <tdruez@nexb.com>
Signed-off-by: Thomas Druez <tdruez@nexb.com>
in place of save() on the QuerySet iteration

Signed-off-by: Thomas Druez <tdruez@nexb.com>
Signed-off-by: Thomas Druez <tdruez@nexb.com>
Signed-off-by: Thomas Druez <tdruez@nexb.com>
Signed-off-by: Thomas Druez <tdruez@nexb.com>
Signed-off-by: Thomas Druez <tdruez@nexb.com>
@tdruez tdruez added enhancement New feature or request high priority labels Mar 12, 2021
@tdruez tdruez added this to the 1.1 milestone Mar 12, 2021
@tdruez
tdruez requested a review from pombredanne March 12, 2021 06:03
@tdruez tdruez self-assigned this Mar 12, 2021

@pombredanne pombredanne left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍 ... Just a small question wrt. docs

proxy_redirect off;
client_max_body_size 100M;
proxy_read_timeout 600s;
client_max_body_size 10G;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have some indications of these defaults in the docs?

@tdruez tdruez Mar 12, 2021

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, we do not have much docs on the default webserver configuration in the context of running the app through docker-compose.
Not sure about the value of commenting each lines of a nginx configuration in the ScanCode.io docs.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough.

@tdruez
tdruez merged commit 1a702ef into main Mar 15, 2021
@tdruez
tdruez deleted the 70-performances branch March 15, 2021 04:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request high priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants