diff options
| author | Dan Engelbrecht <[email protected]> | 2025-03-27 14:09:01 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-03-27 14:09:01 +0100 |
| commit | a0a0dba13317533f882a85b7f4087588cfa09066 (patch) | |
| tree | 3efc4c88f184a4ea8fa2d845584d74f561efb153 /src/zenutil/include | |
| parent | zen build cache service (#318) (diff) | |
| download | zen-a0a0dba13317533f882a85b7f4087588cfa09066.tar.xz zen-a0a0dba13317533f882a85b7f4087588cfa09066.zip | |
optional compress of block chunks (#326)
- Feature: zenserver: Add command line option `--gc-buildstore-duration-seconds` to control GC life time of build store data
- Improvement: ELF and MachO executable files are no longer chunked
- Improvement: Compress chunks in blocks that encloses a full file (such as small executables)
- Bugfix: Strip path delimiter at end of string in StringToPath
Diffstat (limited to 'src/zenutil/include')
| -rw-r--r-- | src/zenutil/include/zenutil/chunkingcontroller.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/zenutil/include/zenutil/chunkingcontroller.h b/src/zenutil/include/zenutil/chunkingcontroller.h index 246f4498a..970917fb0 100644 --- a/src/zenutil/include/zenutil/chunkingcontroller.h +++ b/src/zenutil/include/zenutil/chunkingcontroller.h @@ -12,6 +12,8 @@ namespace zen { const std::vector<std::string_view> DefaultChunkingExcludeExtensions = {".exe", ".dll", ".pdb", ".self", ".mp4"}; +const bool DefaultChunkingExcludeElfFiles = true; +const bool DefaultChunkingExcludeMachOFiles = true; const ChunkedParams DefaultChunkedParams = {.MinSize = ((8u * 1u) * 1024u) - 128u, .MaxSize = 128u * 1024u, @@ -40,6 +42,8 @@ public: std::unique_ptr<ChunkingController> CreateBasicChunkingController( std::span<const std::string_view> ExcludeExtensions = DefaultChunkingExcludeExtensions, + bool ExcludeElfFiles = DefaultChunkingExcludeElfFiles, + bool ExcludeMachOFiles = DefaultChunkingExcludeMachOFiles, uint64_t ChunkFileSizeLimit = DefaultChunkingFileSizeLimit, const ChunkedParams& ChunkingParams = DefaultChunkedParams); std::unique_ptr<ChunkingController> CreateBasicChunkingController(CbObjectView Parameters); |