Skip to content

memberOf plugin :: mbof_add_operation() optimizations#8464

Draft
alexey-tikhonov wants to merge 2 commits intoSSSD:masterfrom
alexey-tikhonov:mbof-add
Draft

memberOf plugin :: mbof_add_operation() optimizations#8464
alexey-tikhonov wants to merge 2 commits intoSSSD:masterfrom
alexey-tikhonov:mbof-add

Conversation

@alexey-tikhonov
Copy link
Member

No description provided.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request optimizes the memberof plugin and related group processing functions. The mbof_add_operation function is streamlined by removing a redundant check. More significantly, sdap_add_incomplete_groups is refactored to be more efficient by avoiding a nested loop when checking for missing groups. This simplification propagates to its callers, resulting in cleaner and more performant code for handling group memberships. The changes are well-implemented and improve the codebase.

@alexey-tikhonov alexey-tikhonov added the Performance Performance related patches label Feb 18, 2026
'msg->dn' (== 'addop->entry_dn') is already filtered out from 'parents->dns[i]'
at the beginning of `mbof_add_operation()`
when removing a duplicate. DNs order doesn't matter.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-to-sssd-2-9 Performance Performance related patches

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant