aptly/cmd
Sjoerd Simons f61514edaf Allow disabling bzip2 compression for index files
Using bzip2 generates smaller index files (roughly 20% smaller Packages
files) but it comes with a big performance penalty.  When publishing a
debian mirror snapshot (amd64, arm64, armhf, source) without contents
skipping bzip speeds things up around 1.8 times.

```
$ hyperfine -w 1 -L skip-bz2 true,false  -m 3 -p "aptly -config aptly.conf publish drop bullseye || true" "aptly -config aptly.conf  publish snapshot  --skip-bz2={skip-bz2} --skip-contents --skip-signing bullseye"
Benchmark 1: aptly -config aptly.conf  publish snapshot  --skip-bz2=true --skip-contents --skip-signing bullseye
  Time (mean ± σ):     35.567 s ±  0.307 s    [User: 39.366 s, System: 10.075 s]
  Range (min … max):   35.311 s … 35.907 s    3 runs

Benchmark 2: aptly -config aptly.conf  publish snapshot  --skip-bz2=false --skip-contents --skip-signing bullseye
  Time (mean ± σ):     64.740 s ±  0.135 s    [User: 68.565 s, System: 10.129 s]
  Range (min … max):   64.596 s … 64.862 s    3 runs

Summary
  'aptly -config aptly.conf  publish snapshot  --skip-bz2=true --skip-contents --skip-signing bullseye' ran
    1.82 ± 0.02 times faster than 'aptly -config aptly.conf  publish snapshot  --skip-bz2=false --skip-contents --skip-signing bullseye'
```

Allow skipping bz2 creation for setups where faster publishing is more
important then Package file size.

Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
2022-06-22 11:25:45 +02:00
..
api.go Add first /repos/ API, command `api serve`. #116 2014-10-08 16:19:15 +04:00
api_serve.go Revert "Don't remove API file socket if it exists and it's usable" 2019-07-13 00:45:54 +03:00
cmd.go every go routine needs to have its own collection factory 2022-01-27 09:30:14 +01:00
config.go Config command created - config show started 2014-10-13 15:58:41 +01:00
config_show.go Switch to gometalinter 2017-03-23 01:51:08 +03:00
context.go Fix paths after repository transfer to aptly-dev 2018-04-18 21:19:43 +03:00
db.go Add command aptly db recover. 2014-04-05 16:11:19 +04:00
db_cleanup.go Fix linting errors 2022-01-27 09:30:14 +01:00
db_recover.go Refactor database code to support standalone batches, transactions. 2019-08-09 00:46:40 +03:00
graph.go every go routine needs to have its own collection factory 2022-01-27 09:30:14 +01:00
mirror.go Fix paths after repository transfer to aptly-dev 2018-04-18 21:19:43 +03:00
mirror_create.go Revive skipped tests 2022-02-08 11:18:50 +01:00
mirror_drop.go every go routine needs to have its own collection factory 2022-01-27 09:30:14 +01:00
mirror_edit.go every go routine needs to have its own collection factory 2022-01-27 09:30:14 +01:00
mirror_list.go golint: "Json" in func name should be "JSON". 2022-01-27 09:30:14 +01:00
mirror_rename.go every go routine needs to have its own collection factory 2022-01-27 09:30:14 +01:00
mirror_search.go Allow filter to be empty for `aptly * search` commands 2017-02-10 23:07:06 +03:00
mirror_show.go Fix linting errors 2022-01-27 09:30:14 +01:00
mirror_update.go Make downloader type configurable 2022-01-31 10:32:54 +01:00
package.go Command package show with tests. #80 2014-08-28 22:47:41 +04:00
package_search.go every go routine needs to have its own collection factory 2022-01-27 09:30:14 +01:00
package_show.go every go routine needs to have its own collection factory 2022-01-27 09:30:14 +01:00
publish.go Fix paths after repository transfer to aptly-dev 2018-04-18 21:19:43 +03:00
publish_drop.go every go routine needs to have its own collection factory 2022-01-27 09:30:14 +01:00
publish_list.go enh: Give info when unable to load list of repos 2022-04-25 12:58:06 +02:00
publish_repo.go Allow disabling bzip2 compression for index files 2022-06-22 11:25:45 +02:00
publish_show.go golint: "Json" in func name should be "JSON". 2022-01-27 09:30:14 +01:00
publish_snapshot.go Allow disabling bzip2 compression for index files 2022-06-22 11:25:45 +02:00
publish_switch.go Allow disabling bzip2 compression for index files 2022-06-22 11:25:45 +02:00
publish_update.go Allow disabling bzip2 compression for index files 2022-06-22 11:25:45 +02:00
repo.go First version aptly repo include command processing .changes files. #71 2015-03-15 21:30:54 +03:00
repo_add.go every go routine needs to have its own collection factory 2022-01-27 09:30:14 +01:00
repo_copy.go Update command usage. 2014-07-28 19:17:21 +04:00
repo_create.go every go routine needs to have its own collection factory 2022-01-27 09:30:14 +01:00
repo_drop.go every go routine needs to have its own collection factory 2022-01-27 09:30:14 +01:00
repo_edit.go every go routine needs to have its own collection factory 2022-01-27 09:30:14 +01:00
repo_import.go Update command usage. 2014-07-28 19:17:21 +04:00
repo_include.go Add task api and resource locking ability 2022-01-27 09:30:14 +01:00
repo_list.go golint: "Json" in func name should be "JSON". 2022-01-27 09:30:14 +01:00
repo_move.go every go routine needs to have its own collection factory 2022-01-27 09:30:14 +01:00
repo_remove.go every go routine needs to have its own collection factory 2022-01-27 09:30:14 +01:00
repo_rename.go every go routine needs to have its own collection factory 2022-01-27 09:30:14 +01:00
repo_search.go Allow filter to be empty for `aptly * search` commands 2017-02-10 23:07:06 +03:00
repo_show.go golint: "Json" in func name should be "JSON". 2022-01-27 09:30:14 +01:00
run.go Fix paths after repository transfer to aptly-dev 2018-04-18 21:19:43 +03:00
serve.go every go routine needs to have its own collection factory 2022-01-27 09:30:14 +01:00
snapshot.go Implementation of command aptly snapshot filter. #82 2014-09-01 22:09:58 +04:00
snapshot_create.go every go routine needs to have its own collection factory 2022-01-27 09:30:14 +01:00
snapshot_diff.go every go routine needs to have its own collection factory 2022-01-27 09:30:14 +01:00
snapshot_drop.go every go routine needs to have its own collection factory 2022-01-27 09:30:14 +01:00
snapshot_filter.go every go routine needs to have its own collection factory 2022-01-27 09:30:14 +01:00
snapshot_list.go golint: "Json" in func name should be "JSON". 2022-01-27 09:30:14 +01:00
snapshot_merge.go every go routine needs to have its own collection factory 2022-01-27 09:30:14 +01:00
snapshot_pull.go every go routine needs to have its own collection factory 2022-01-27 09:30:14 +01:00
snapshot_rename.go every go routine needs to have its own collection factory 2022-01-27 09:30:14 +01:00
snapshot_search.go every go routine needs to have its own collection factory 2022-01-27 09:30:14 +01:00
snapshot_show.go Fix linting errors 2022-01-27 09:30:14 +01:00
snapshot_verify.go every go routine needs to have its own collection factory 2022-01-27 09:30:14 +01:00
task.go Aptly script has now become aptly task 2014-08-16 14:14:56 +00:00
task_run.go Enable `vetshadow` linter 2017-05-04 23:00:13 +03:00
version.go Fix paths after repository transfer to aptly-dev 2018-04-18 21:19:43 +03:00