Skip to content
This repository has been archived by the owner on Oct 12, 2020. It is now read-only.

Add fast mode #17

Merged
merged 2 commits into from
Jul 1, 2019
Merged

Add fast mode #17

merged 2 commits into from
Jul 1, 2019

Conversation

Ullaakut
Copy link
Owner

@Ullaakut Ullaakut commented Jul 1, 2019

Goal of this PR

Fixes #10

This PR addresses Astronomer's biggest issue at the moment: it is slow. That's why this PR adds the fast mode, enabled by default. The fast mode ensures that if a repository contains more than (by default) 1000 stars, only 1000 random stargazers will be scanned among all.

The fast mode can be disabled by adding --fast=false. The amount of stars to compute in fast mode can also be changed by using the -s or --stars option.

This means that with the default value of 1000, scanning a big repository with thousands of stars takes about 25-30 minutes. (was multiple days in the v0.1.x and about 10 hours per 30K stars in the v0.2.0&0.3.0)

Examples

Screenshot 2019-07-01 at 8 51 10 PM

@Ullaakut Ullaakut added the enhancement New feature or request label Jul 1, 2019
@Ullaakut Ullaakut added this to the v1.0 milestone Jul 1, 2019
@Ullaakut Ullaakut self-assigned this Jul 1, 2019
@Ullaakut Ullaakut merged commit d1cb0e9 into master Jul 1, 2019
@Ullaakut Ullaakut deleted the fast-mode branch July 6, 2019 05:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a fast mode
1 participant