Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Use Marshal to serialize minter state rather than YAML #15

Merged
merged 1 commit into from
Aug 6, 2015

Conversation

mjgiarlo
Copy link
Member

@mjgiarlo mjgiarlo commented Aug 4, 2015

Because performance, especially for stateful minters with millions or billions of identifiers. See https://gist.github.com/mjgiarlo/1b09f710a625ffb92a8f#file-benchmark-results-with-marshal-serialization. Also provide a rake task for one-time migration of an existing minter state file from YAML to Marshal format.

@mjgiarlo mjgiarlo force-pushed the use_marshal_vs_yaml branch from 7bf5f2c to e7b30df Compare August 4, 2015 22:43
@mjgiarlo mjgiarlo changed the title Use Marshal to serialize minter state rather than YAML. Use Marshal to serialize minter state rather than YAML Aug 4, 2015
@cjcolvar
Copy link
Member

cjcolvar commented Aug 5, 2015

So if someone upgrades but doesn't run the migration what will happen?

@mjgiarlo
Copy link
Member Author

mjgiarlo commented Aug 5, 2015

@cjcolvar 💣 (because I didn't want to write a checker that has to check on every single run)

I was thinking this would be a new major version to reflect the breaking change.

Because performance. See https://gist.github.com/mjgiarlo/1b09f710a625ffb92a8f#file-benchmark-results-with-marshal-serialization. Also provide a rake task for migrating an existing minter state file from YAML to Marshal format.
@mjgiarlo mjgiarlo force-pushed the use_marshal_vs_yaml branch from e7b30df to 58aaf5c Compare August 5, 2015 18:43
@mjgiarlo
Copy link
Member Author

mjgiarlo commented Aug 5, 2015

@cjcolvar I have also included a post_install_message on bundle that says "run the rake task or else"

@cjcolvar
Copy link
Member

cjcolvar commented Aug 6, 2015

👍

cjcolvar added a commit that referenced this pull request Aug 6, 2015
Use Marshal to serialize minter state rather than YAML
@cjcolvar cjcolvar merged commit 86d18ef into master Aug 6, 2015
@cjcolvar cjcolvar deleted the use_marshal_vs_yaml branch August 6, 2015 01:45
@mjgiarlo
Copy link
Member Author

mjgiarlo commented Aug 6, 2015

👏

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants