HomeClusterLabs Projects

Refactor: libpacemaker: Use scandir() filter in pcmk__profile_dir()
a1b87bf75a71Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit no longer exists in the repository. It may have been part of a branch which was deleted.This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

Description

Refactor: libpacemaker: Use scandir() filter in pcmk__profile_dir()

It would be more efficient to compare characters directly for "." and
".." instead of making string comparison function calls. I think
readability is more important. That overhead is insignificant compared
to the simulations that we're profiling.

We could simplify the filter further if we don't add the crm_trace
messages. I have no preference. I mostly added them as documentation so
that what we're doing is obvious. Profiling is really just for
developers.

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

Details

Provenance
nrwahl2Authored on Jan 24 2025, 6:58 PM

Event Timeline

Commit No Longer Exists

This commit no longer exists in the repository.