HomeClusterLabs Projects

Fix: libcrmcommon: Speed up parse_op_key.

Description

Fix: libcrmcommon: Speed up parse_op_key.

Simplify how finding underscores in try_basic_match works. We can use
char pointers and walk them back through the string instead of maintaining
various lengths and offsets. The size values can be gotten rid of by
doing pointer arithmetic. This also allows getting rid of a lot of error
checking.

Details

Provenance
clumensAuthored on Oct 13 2020, 4:56 PM
Parents
rPe058b4b4056e: Fix: libcrmcommon: Speed up parse_op_key.
Branches
Unknown
Tags
Unknown

Event Timeline