RiotGamesMinions / thor-scmversion

Thor tasks to manage a VERSION file based on SCM tags
MIT License
58 stars 22 forks source link

Repositories with >1000 tags experience a performance hit with the changes to how tags are evaluated #24

Open capoferro opened 11 years ago

capoferro commented 11 years ago

See #22.

chilicheech commented 8 years ago

We are noticing a performance hit where it take 2 minutes just to bump the version. We have about 300 version tags in our repo. Another one of our repos has about 600 version tags and it take 4 minutes just to do a version bump. We have the same performance hit when looking up the version. Also, if one cookbook depends on other cookbooks that have a lot of version tags the performance hit just keeps compounding.

Can't we accomplish all we need by just checking the latest tag instead of iteration through all the tags in the branch? Wouldn't something like git describe --abbrev=0 work for the purposes of thor-scmversion?