Skip to content

Perf: cache groups of local users - #99

Open
kiarn wants to merge 1 commit into
masterfrom
perf/cache-local-user-groups
Open

kiarn wants to merge 1 commit into
masterfrom
perf/cache-local-user-groups

Conversation

@kiarn

@kiarn kiarn commented Sep 25, 2026

Copy link
Copy Markdown
Member

Description

Caching successful id resolution. When a single printer is installed, the command id is called up to 24 times in my environment (12 printers x 2 filters), which increase considerably the login time.
When a id is successfully resolved, stringList is cached in order to avoid further requests, and this cache only live with the thread.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Tested in my school, login time considerably improved, printers still working.
Test suite of linuxclient passed too.

Checklist:

  • I have performed a self-review of my own code
  • My changes generate no new warnings
  • One test updated to clear cache and avoid collision

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant