Skip to content

Fix VotingPlugin startup delay from UUID tab completion - #306

Merged
BenCodez merged 2 commits into
masterfrom
fix/votingplugin-startup-uuid-completions
Aug 30, 2026
Merged

Fix VotingPlugin startup delay from UUID tab completion#306
BenCodez merged 2 commits into
masterfrom
fix/votingplugin-startup-uuid-completions

Conversation

@BenCodez

Copy link
Copy Markdown
Owner

Summary

  • build the stored UUID tab-completion set with LinkedHashSet
  • preserve UUID uniqueness and insertion order
  • convert back to the existing ArrayList API only after collection

Regression

AdvancedCore commit d835afc changed UUID tab completion from the asynchronously populated UUID/name cache to every UUID in user storage. The rebuild retained ArrayList.contains() inside the loop, making startup O(n²). With a large VotingPlugin user table, this blocks the server thread during plugin enable.

This change makes the same operation O(n) without changing the completion values.

Scope

This PR only addresses the VotingPlugin/AdvancedCore UUID tab-completion startup delay. It does not alter user storage, Control, top-voter startup, or other plugin delays.

@BenCodez
BenCodez marked this pull request as ready for review August 30, 2026 16:06
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 30, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-08-30T16:09:14.293222Z 4aea8da Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@BenCodez
BenCodez merged commit 615a4a8 into master Aug 30, 2026
4 checks passed
@BenCodez
BenCodez deleted the fix/votingplugin-startup-uuid-completions branch August 30, 2026 16:09
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