diff options
Diffstat (limited to 'lib/Net.Compression')
-rw-r--r-- | lib/Net.Compression/VNLib.Net.Compression/CompressorManager.cs | 2 | ||||
-rw-r--r-- | lib/Net.Compression/vnlib_compress/Taskfile.yaml | 27 | ||||
-rw-r--r-- | lib/Net.Compression/vnlib_compress/package.json | 10 |
3 files changed, 38 insertions, 1 deletions
diff --git a/lib/Net.Compression/VNLib.Net.Compression/CompressorManager.cs b/lib/Net.Compression/VNLib.Net.Compression/CompressorManager.cs index bcc85c9..2407ba0 100644 --- a/lib/Net.Compression/VNLib.Net.Compression/CompressorManager.cs +++ b/lib/Net.Compression/VNLib.Net.Compression/CompressorManager.cs @@ -64,7 +64,7 @@ namespace VNLib.Net.Compression /// <param name="config">The json configuration element</param> public void OnLoad(ILogProvider? log, JsonElement? config) { - _compLevel = CompressionLevel.Optimal; + _compLevel = CompressionLevel.Fastest; string libPath = NATIVE_LIB_NAME; if(config.HasValue) diff --git a/lib/Net.Compression/vnlib_compress/Taskfile.yaml b/lib/Net.Compression/vnlib_compress/Taskfile.yaml new file mode 100644 index 0000000..51aaf79 --- /dev/null +++ b/lib/Net.Compression/vnlib_compress/Taskfile.yaml @@ -0,0 +1,27 @@ +# https://taskfile.dev + +#Called by the vnbuild system to produce builds for my website +#https://www.vaughnnugent.com/resources/software + +#This taskfile is specific to this project, since it must be compiled on the target platform +#this simply packs the source code into a tgz file for download + +version: '3' + +tasks: + + #when build succeeds, archive the output into a tgz + postbuild_success: + cmds: + - cmd: powershell mkdir -Force './bin' + #copy source code to target + - powershell -Command "Get-ChildItem -Include *.c,*.h,*.txt -Path * | Resolve-Path -Relative | tar --files-from - -czf 'bin/src.tgz'" + + postbuild_failed: + cmds: [] + +#Remove the output dirs on clean + clean: + ignore_error: true + cmds: + - cmd: powershell Remove-Item -Recurse './bin' diff --git a/lib/Net.Compression/vnlib_compress/package.json b/lib/Net.Compression/vnlib_compress/package.json new file mode 100644 index 0000000..6373511 --- /dev/null +++ b/lib/Net.Compression/vnlib_compress/package.json @@ -0,0 +1,10 @@ +{ + "name": "vnlib_compress", + "version": "0.1.0", + "author": "Vaughn Nugent", + "description": "A CMake cross platform native data compression library, provides brotli and zlib compressors in a single stream api", + "copyright": "Copyright \u00A9 2023 Vaughn Nugent", + "company": "Vaughn Nugent", + "repository": "https://github.com/VnUgE/VNLib.Core/tree/main/lib/Net.Compression/vnlib_compress", + "output_dir": "bin" +}
\ No newline at end of file |