Do not read a JAR completely into a byte-array before computing the SHA#470
Do not read a JAR completely into a byte-array before computing the SHA#470olamy merged 4 commits intoapache:masterfrom
Conversation
…opying files in memory.
|
Looks like a very good improvement! Thanks! |
Yes, will do! Update @olamy : is this really the source for the docs? An SVN-repo? https://svn.apache.org/repos/asf/maven/website/components/extensions/maven-build-cache-extension/performance.html That has been a while! How do I get access? I'd like to add a paragraph right after the 'General notes' part: Supported hash algorithmsThe following hash algorithms are supported:
All algorithms come in two flavors: the default one, which fully reads artifacts in memory, and a 'memory mapped' version, which reduces memory requirements but needs additional To use the Memory Mapped versions to algorithms, the file
Hash algorithm selectionBy default, the cache uses the XX algorithm, which is a very fast hash algorithm and should be enough for most use cases. In projects with a large codebase, the performance of hash algorithms becomes more critical, and other algorithms like XXMM (XX with memory-mapped files) could provide better performance, depending on the environment.
Filter out unnecessary artifacts |
|
@jvdvegt the sources for the page are in the repo https://github.com/apache/maven-build-cache-extension/blob/master/src/site/markdown/performance.md |
…gorithm used and the keyword for configuration.
|
@jvdvegt thanks for your hard. I fixed test in |
|
@olamy : I think I rebased it (I'm not very familiar with GitHub multi-repos). Thanks for reviewing this! |
|
@jvdvegt all merged. Thanks for your contribution! (and patience :) ) |
Following this checklist to help us incorporate your
contribution quickly and easily:
Note that commits might be squashed by a maintainer on merge.
This may not always be possible but is a best-practice.
mvn verifyto make sure basic checks pass.NB: this fails on 'null/org/apache/maven/extensions/maven-build-cache-extension/${projectVersion}/maven-build-cache-extension-${projectVersion}.pom.lastUpdated', which seems unrelated).
A more thorough check will be performed on your pull request automatically.
mvn -Prun-its verify).If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.
To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.