Skip to content

Conversation

jonwinton
Copy link
Contributor

A function to do the same thing as parseBootstrap but doesn't assume Yaml input. The current parseBootstrap function doesn't allow for memoization of the yaml parsing which can be CPU intensive, like during amphora startup where the number of parses for NYMag exceeds 8k reads

Copy link
Contributor

@yuliyv yuliyv left a comment

Choose a reason for hiding this comment

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

👒

return h.of(obj)
.flatMap(obj => formatting.toDispatch(h.of(obj)))
.flatMap(dispatch => prefixes.add(dispatch, prefix));
}
Copy link
Contributor

Choose a reason for hiding this comment

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

this function doesn't do what its name implies. It looks like it converts an object literal (not JSON) and converts it to an array of dispatches

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, renamed.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 32f2cf7 on parseBootstrapJson into d61be60 on master.

@jonwinton jonwinton merged commit 97341e6 into master Aug 22, 2018
@jonwinton jonwinton deleted the parseBootstrapJson branch August 22, 2018 16:59
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