mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 02:23:34 +08:00
component_information: switch from gzip to xz
Improves compression, e.g. current params file: 62KB to 51KB There's also a PRESET_EXTREME option, which reduces by another 2KB. We can revisit that once needed, as it increases mem usage as well.
This commit is contained in:
@@ -69,12 +69,12 @@ public:
|
||||
switch (type) {
|
||||
case COMP_METADATA_TYPE_VERSION:
|
||||
component_info.metadata_uid = component_information::component_version_hash;
|
||||
handled = get_component_information("component_version.json.gz", component_info);
|
||||
handled = get_component_information("component_version.json.xz", component_info);
|
||||
break;
|
||||
|
||||
case COMP_METADATA_TYPE_PARAMETER:
|
||||
component_info.metadata_uid = component_information::params_hash;
|
||||
handled = get_component_information("params.json.gz", component_info);
|
||||
handled = get_component_information("params.json.xz", component_info);
|
||||
break;
|
||||
|
||||
case COMP_METADATA_TYPE_COMMANDS:
|
||||
|
||||
Reference in New Issue
Block a user