Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

msys2-runtime: restore fast path for current user primary group #124

Merged
merged 1 commit into from Aug 29, 2023

Conversation

dscho
Copy link
Member

@dscho dscho commented Aug 28, 2023

A recent commit removed an optimization from the Cygwin runtime that fetches the default group from the current user token: At times, this is not accurate such as when groups like the builtin Administrators group is the primary group.

However, removing this optimization causes extremely poor performance when connected to some Active Directory environments.

Reflecting git-for-windows/msys2-runtime#57, this update restores this optimization as the default behaviour. To still allow the user to opt into the correct behavior, a group: db-accurate option is provided for nsswitch.conf.

This fixes git-for-windows/git#4459

A recent commit removed an optimization from the Cygwin runtime that
fetches the default group from the current user token: At times, this is
not accurate such as when groups like the builtin Administrators group
is the primary group.

However, removing this optimization causes extremely poor
performance when connected to some Active Directory
environments.

Reflecting git-for-windows/msys2-runtime#57,
this update restores this optimization as the default behaviour. To
still allow the user to opt into the correct behavior, a `group:
db-accurate` option is provided for `nsswitch.conf`.

This fixes git-for-windows/git#4459

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho dscho self-assigned this Aug 28, 2023
@dscho
Copy link
Member Author

dscho commented Aug 28, 2023

/deploy

@dscho
Copy link
Member Author

dscho commented Aug 28, 2023

/deploy msys2-runtime

The workflow run was started.

@dscho
Copy link
Member Author

dscho commented Aug 29, 2023

/add relnote bug Some Git commands (those producing paged output, for example) experienced a significant slow-down under certain circumstances, when running on a machine joined to a domain controller, which has been fixed.

The workflow run was started

github-actions bot pushed a commit to git-for-windows/build-extra that referenced this pull request Aug 29, 2023
Some Git commands (those producing paged output, for example)
experienced a [significant
slow-down](git-for-windows/git#4459) under
certain circumstances, when running on a machine joined to a domain
controller, which [has been
fixed](git-for-windows/MSYS2-packages#124).

Signed-off-by: gitforwindowshelper[bot] <gitforwindowshelper-bot@users.noreply.github.com>
@dscho dscho merged commit 084a9f8 into git-for-windows:main Aug 29, 2023
4 checks passed
@dscho dscho deleted the faster-msys2-runtime-group-lookup branch August 29, 2023 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant