Skip to content

Shuffle pages#57

Merged
jasonvarga merged 1 commit into
masterfrom
shuffle
Apr 28, 2021
Merged

Shuffle pages#57
jasonvarga merged 1 commit into
masterfrom
shuffle

Conversation

@jasonvarga

Copy link
Copy Markdown
Member

In #54 you can split your pages into chunks to be processed concurrently.

If you have a bunch of similar entries that happen to be slow, or a bunch of manual slow routes, they'll all be grouped together. It's possible one worker will get stuck with a bunch of slow pages, and the other workers will be finished.

By shuffling all the pages, it gives you a better chance that the slow routes will be spread across workers, making the site generate faster overall.

Previously we sorted by URL purely to make the console output nicer. It didn't affect the functionality.

@jasonvarga jasonvarga merged commit f1bd6ff into master Apr 28, 2021
@jasonvarga jasonvarga deleted the shuffle branch April 28, 2021 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant