https://bugs.openldap.org/show_bug.cgi?id=10458
Issue ID: 10458 Summary: improve handling of large entry modifications Product: OpenLDAP Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Keywords: needs_review Severity: normal Priority: --- Component: slapd Assignee: bugs@openldap.org Reporter: ondra@mistotebe.net Target Milestone: ---
If modifying a huge entry (e.g. a super-large group with countless members), we (back-mdb) spends about 50% of time on memmove() in attr_dup2 just copying the data around. We don't need this, this e_attrs doesn't outlive the mdb_modify that transitively calls it nor do we write into the data themselves.
We should be able to tell attrs_dup that it can reuse parts of the original attributes and set `SLAP_ATTR_DONT_FREE_DATA` on the resulting attributes if the caller claims it will take care of the lifetimes accordingly, including any new values it puts in.
https://bugs.openldap.org/show_bug.cgi?id=10458
Ondřej Kuzník ondra@mistotebe.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |IN_PROGRESS
--- Comment #1 from Ondřej Kuzník ondra@mistotebe.net --- https://git.openldap.org/openldap/openldap/-/merge_requests/840
https://bugs.openldap.org/show_bug.cgi?id=10458
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords|needs_review | Target Milestone|--- |2.7.0 Assignee|bugs@openldap.org |ondra@mistotebe.net
https://bugs.openldap.org/show_bug.cgi?id=10458
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |TEST Status|IN_PROGRESS |RESOLVED
--- Comment #2 from Quanah Gibson-Mount quanah@openldap.org --- • 7950d31e by Ondřej Kuzník at 2026-03-19T07:56:41+00:00 ITS#10458 Allow value sharing between attributes
• 37143473 by Ondřej Kuzník at 2026-03-19T07:56:41+00:00 ITS#10458 Reuse attribute values during modify checks
• 12828f36 by Ondřej Kuzník at 2026-03-19T07:56:41+00:00 ITS#10458 Reuse attribute values in aliased attributes
https://bugs.openldap.org/show_bug.cgi?id=10458
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED Resolution|TEST |FIXED