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

plumbing: packfile/scanner, add option to skip calculating checksum #1122

Closed
wants to merge 1 commit into from

Conversation

filipnavara
Copy link
Contributor

@filipnavara filipnavara commented Apr 20, 2019

…and use the option at places where the checksum is ignored anyway.

@filipnavara filipnavara changed the title plumbing: packfile/scanner, add option to skip calculating checksum WIP: plumbing: packfile/scanner, add option to skip calculating checksum Apr 20, 2019
…use the option at place where the checksum is ignored anyway

Signed-off-by: Filip Navara <navara@emclient.com>
@filipnavara filipnavara changed the title WIP: plumbing: packfile/scanner, add option to skip calculating checksum plumbing: packfile/scanner, add option to skip calculating checksum Apr 20, 2019
@mcuadros mcuadros requested a review from jfontan April 20, 2019 23:49
@filipnavara
Copy link
Contributor Author

Seems that #1124 addresses my performance concerns in a better way where the CRC calculation is fast enough to be ignored. Feel free to close this PR in favor of that one.

@jfontan
Copy link
Contributor

jfontan commented Apr 22, 2019

Even if #1124 alleviates the problem I also think that it's good to have a switch to disable generation of CRC. If I remember correctly CRC is only useful for index generation or verification. Probably it's better to wait until the changes from #1124 are merged and add the switch on top of that.

@filipnavara
Copy link
Contributor Author

The overhead of calculating the CRC may be small enough to be negligable now. I'll rework this PR and test it on my use case to see whether there's still any point in pursuing it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants