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

fix(exporter): add some parallel fetching of blocks where possible #73

Merged
merged 2 commits into from
Sep 26, 2016

Conversation

dignifiedquire
Copy link
Contributor

pull.flatten()
)),
))
})),
Copy link
Contributor

Choose a reason for hiding this comment

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

@dignifiedquire could you please add a bit of documentation to this function, each time I come to read it, I scratch my head to get back to understand what is supposed to be going on

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is /* this is where the magic happens */ enough?

Copy link
Contributor

@daviddias daviddias Sep 23, 2016

Choose a reason for hiding this comment

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

no. If is helpful to have diagrams, add a file to explain the internals with those graphs :) The unixfs-engine is a big piece of the files API and it needs to be easy to understand and pluggable so that we can extend it easily with other layouts, customs chunkers and so.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@diasdavid added a description. Can we get this merged soon plese?

@dignifiedquire dignifiedquire changed the title [WIP] fix(exporter): add some parallel fetching of blocks where possible fix(exporter): add some parallel fetching of blocks where possible Sep 25, 2016
// 3.2. Switch on the node type
// - `directory`: return node
// - `file`: use the fileExporter to load and return the file
// 4. Flatten
Copy link
Contributor

Choose a reason for hiding this comment

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

<3

@daviddias daviddias merged commit 4fcdd51 into master Sep 26, 2016
@daviddias daviddias deleted the fix-blocks branch September 26, 2016 11:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants