mjcowley
2013-09-27 22:13:56 UTC
I am using SVNKit 1.3.5 and Subversion 1.6.15.
I stream files into the repository using the sendDelta method below. I am
trying to improve the streaming speed.
Is there a different method that is faster or a way to set a larger buffer
size?
What if any is the pickup in speed if I install Subversion 1.7 with SVNKit
relatively?
Any ideas would be appreciated.
Thanks
MJ
public void streamIn(final InputStream anInputStream) throws
EmsRepositoryIOException {
// stream content into the configuration file at relative path
final SVNDeltaGenerator deltaGenerator = new SVNDeltaGenerator();
final String relativePath = relativePath(getConfigurationFile());
try {
// stream the differences to the repository calculating new
// checksum
final String md5CheckSum = deltaGenerator.sendDelta(
relativePath, anInputStream,
getCommitEditor(), true);
getConfigurationFile().setCheckSum(md5CheckSum);
} catch (final Exception e) {
throw new EmsRepositoryIOException(
"Exception thrown while trying to stream file content deltas into
repository for "
+ relativePath,
e);
} finally {
try {
if (anInputStream != null) {
anInputStream.close();
}
} catch (final IOException e2) {
LOG.warn(
"IOException thrown while trying to close input stream. exception
ignored and processing continues.",
e2);
}
}
}
--
View this message in context: http://subversion.1072662.n5.nabble.com/streaming-a-file-into-the-repository-how-to-make-faster-tp185037.html
Sent from the SVNKit - Users mailing list archive at Nabble.com.
I stream files into the repository using the sendDelta method below. I am
trying to improve the streaming speed.
Is there a different method that is faster or a way to set a larger buffer
size?
What if any is the pickup in speed if I install Subversion 1.7 with SVNKit
relatively?
Any ideas would be appreciated.
Thanks
MJ
public void streamIn(final InputStream anInputStream) throws
EmsRepositoryIOException {
// stream content into the configuration file at relative path
final SVNDeltaGenerator deltaGenerator = new SVNDeltaGenerator();
final String relativePath = relativePath(getConfigurationFile());
try {
// stream the differences to the repository calculating new
// checksum
final String md5CheckSum = deltaGenerator.sendDelta(
relativePath, anInputStream,
getCommitEditor(), true);
getConfigurationFile().setCheckSum(md5CheckSum);
} catch (final Exception e) {
throw new EmsRepositoryIOException(
"Exception thrown while trying to stream file content deltas into
repository for "
+ relativePath,
e);
} finally {
try {
if (anInputStream != null) {
anInputStream.close();
}
} catch (final IOException e2) {
LOG.warn(
"IOException thrown while trying to close input stream. exception
ignored and processing continues.",
e2);
}
}
}
--
View this message in context: http://subversion.1072662.n5.nabble.com/streaming-a-file-into-the-repository-how-to-make-faster-tp185037.html
Sent from the SVNKit - Users mailing list archive at Nabble.com.