Skip to content

Conversation

@federicomaffei
Copy link
Collaborator

Do not merge.

@mattiaerre
Copy link
Member

@federicomaffei I like this feature

module.exports = function(history) {
var result = [];

_.each(history.components, function(singleComponent, name) {
Copy link
Contributor

@nickbalestra nickbalestra Apr 7, 2017

Choose a reason for hiding this comment

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

I guess histories could grows quite big in time.. then for loops instead of nested each will make a difference in perfs. We could also probably create a sorted array as we push them instead of having to loop through it again with sortBy. What you think?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Agreed @nickbalestra, especially about the quick sort. That sort and reverse will not make it to the final version 👍

@matteofigus matteofigus deleted the publish-history branch April 26, 2017 13:00
@matteofigus
Copy link
Member

Closed this in favour of #467 (the first commits came from this branch)

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.

5 participants