]> source.dussan.org Git - gitea.git/commit
Improve LDAP synchronization efficiency (#16994)
authorzeripath <art27@cantab.net>
Wed, 15 Sep 2021 09:28:37 +0000 (10:28 +0100)
committerGitHub <noreply@github.com>
Wed, 15 Sep 2021 09:28:37 +0000 (10:28 +0100)
commitdb6b7db06df5feee87c29000c19a52dbf9a150cc
treeb7ec09fb957b9c4e6911efc3e326462746f8e1ed
parent976db2a8b78b18f6ca934b9da93b4e3b2c746de5
Improve LDAP synchronization efficiency (#16994)

The current LDAP sync routine has order n^2 efficiency. This change reduces this
to order n.log n.

Signed-off-by: Andrew Thornton <art27@cantab.net>
services/auth/source/ldap/source_search.go
services/auth/source/ldap/source_sync.go