diff options
author | Oren Hurvitz | 2012-04-23 18:30:25 +0300 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-04-27 19:46:31 +0100 |
commit | 37d770f814321b461fc3380345d7ffcd1e00acc9 (patch) | |
tree | 1bd358d9e4b4b360c0cd8596ddc3b643b029d670 /OpenSim/Region/CoreModules/World | |
parent | Add Stefan_Boom / stoehr to contributors (diff) | |
download | opensim-SC_OLD-37d770f814321b461fc3380345d7ffcd1e00acc9.zip opensim-SC_OLD-37d770f814321b461fc3380345d7ffcd1e00acc9.tar.gz opensim-SC_OLD-37d770f814321b461fc3380345d7ffcd1e00acc9.tar.bz2 opensim-SC_OLD-37d770f814321b461fc3380345d7ffcd1e00acc9.tar.xz |
Use DotNetZip to compress OARs and IARs.
DotNetZip provides much better compression than standard .NET.
Diffstat (limited to 'OpenSim/Region/CoreModules/World')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestPreparation.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestPreparation.cs b/OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestPreparation.cs index ab3cc41..eabe46e 100644 --- a/OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestPreparation.cs +++ b/OpenSim/Region/CoreModules/World/Archiver/ArchiveWriteRequestPreparation.cs | |||
@@ -40,6 +40,9 @@ using OpenSim.Framework.Serialization; | |||
40 | using OpenSim.Region.CoreModules.World.Terrain; | 40 | using OpenSim.Region.CoreModules.World.Terrain; |
41 | using OpenSim.Region.Framework.Interfaces; | 41 | using OpenSim.Region.Framework.Interfaces; |
42 | using OpenSim.Region.Framework.Scenes; | 42 | using OpenSim.Region.Framework.Scenes; |
43 | using Ionic.Zlib; | ||
44 | using GZipStream = Ionic.Zlib.GZipStream; | ||
45 | using CompressionMode = Ionic.Zlib.CompressionMode; | ||
43 | 46 | ||
44 | namespace OpenSim.Region.CoreModules.World.Archiver | 47 | namespace OpenSim.Region.CoreModules.World.Archiver |
45 | { | 48 | { |
@@ -82,7 +85,7 @@ namespace OpenSim.Region.CoreModules.World.Archiver | |||
82 | { | 85 | { |
83 | try | 86 | try |
84 | { | 87 | { |
85 | m_saveStream = new GZipStream(new FileStream(savePath, FileMode.Create), CompressionMode.Compress); | 88 | m_saveStream = new GZipStream(new FileStream(savePath, FileMode.Create), CompressionMode.Compress, CompressionLevel.BestCompression); |
86 | } | 89 | } |
87 | catch (EntryPointNotFoundException e) | 90 | catch (EntryPointNotFoundException e) |
88 | { | 91 | { |