mattstratton / bowie

A pretty changelog generator
MIT License
2 stars 0 forks source link

Improve performance #19

Open mattstratton opened 5 years ago

mattstratton commented 5 years ago

Functions just fine on a small project (like this one), but on larger projects, it takes a very long time. The logic needs to be optimized.

A good test is devopsdays/theme

bowie -u devopsdays -p devopsdays-theme

mattstratton commented 5 years ago

The code to look at is https://github.com/mattstratton/bowie/blob/master/client/github.go#L28-L57

GitHub
mattstratton/bowie
A pretty changelog generator . Contribute to mattstratton/bowie development by creating an account on GitHub.
mattstratton commented 5 years ago

I increased the pagination to 100 items per page when returning the list of issues and tags, and that helped somewhat (devopsdays/devopsdays-theme performs okay now), but it's still not ideal (chef/chef is still slow...although chef has had > 1,000 tags in the repo, so maybe nothing can be done).

I wonder if GetIssues and GetTags() could run in parallel?

Note: 100 items/page is the max from the GitHub API

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.