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

perf: Update buffer groups only when needed #236

Merged
merged 3 commits into from
Jun 20, 2024
Merged

perf: Update buffer groups only when needed #236

merged 3 commits into from
Jun 20, 2024

Conversation

jcs090218
Copy link
Collaborator

No description provided.

(defun centaur-tabs-buffer-update-groups-cache ()
"Don't call function `centaur-tabs-buffer-update-groups' too often."
(unless centaur-tabs--buffers
(centaur-tabs-buffer-update-groups))
;; Return the first group the current buffer belongs to.
(car (nth 2 (assq (current-buffer) centaur-tabs--buffers))))
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should make this package extremely fast

@jcs090218 jcs090218 merged commit 45bf522 into master Jun 20, 2024
12 checks passed
@jcs090218 jcs090218 deleted the perf/db branch June 20, 2024 10:52
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