HomeClusterLabs Projects

Refactor: libcib: Cache CIB op name-to-details mappings in cib_file.c

Description

Refactor: libcib: Cache CIB op name-to-details mappings in cib_file.c

This prevents repeated loop iterations. The table doesn't change.

This is almost identical to what we're doing in
based_common.c:cib_get_operation(). The hope is to merge cib_server_ops
and cib_file_ops in the future, using shared helper functions and some
other shared data structures.

Ref T185

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Jun 5 2023, 7:10 PM
Parents
rP73c6f30f443e: Low: libcib: Allow multiple cib_file clients simultaneously
Branches
Unknown
Tags
Unknown
Tasks
Restricted Maniphest Task