Skip to content

acl/decompression/database/database_settings.h

#include "acl/decompression/database/database_settings.h"

The settings that control which database code decompression keeps.

database_settings

struct database_settings

Deriving from this struct and overriding these constexpr functions allow you to control which code is stripped for maximum performance.

By default, everything is supported.

database_settings::version_supported

static constexpr compressed_tracks_version16 version_supported()

Which version we should optimize for. If any is specified, the database context will support every single version with full backwards compatibility. Using a specific version allows the compiler to statically strip code for all other versions. This allows the creation of context objects specialized for specific versions which yields optimal performance. Must be static constexpr!

null_database_settings

struct null_database_settings final : public acl::database_settings

These settings disable database usage.

null_database_settings::version_supported

static constexpr compressed_tracks_version16 version_supported()

No compressed data version is supported: the decompression code for databases is removed.

debug_database_settings

struct debug_database_settings : public acl::database_settings

These are debug settings, everything is enabled and nothing is stripped. It will have the worst performance but allows every feature.

default_database_settings

struct default_database_settings : public acl::database_settings

These are the default settings. Only the generally optimal settings are enabled and will offer the overall best performance. Supports every version.