Skip to content

Make use of offset argument to improve performance#30

Open
wasamasa wants to merge 2 commits intoch11ng:masterfrom
wasamasa:fix-missing-data-offset
Open

Make use of offset argument to improve performance#30
wasamasa wants to merge 2 commits intoch11ng:masterfrom
wasamasa:fix-missing-data-offset

Conversation

@wasamasa
Copy link
Copy Markdown

This builds upon #2 which did most of the work. For some reason the original PR did hardcode the offset to 0 and instead created copies of the array with an increasing offset instead.

Before: Initiating a X connection with xcb:connect took between 2.4 and 2.9s

After: Initiating a X connection with xcb:connect now takes 0.31 to 0.33s

wasamasa added 2 commits May 28, 2023 22:53
This builds upon ch11ng#2 which did most of the work. For some reason the
original PR did hardcode the offset to 0 and instead created copies of
the array with an increasing offset instead.
@lechner
Copy link
Copy Markdown

lechner commented May 30, 2023

Hi,

I deployed EXWM built on this branch via my custom channel in Guix. EXWM works fine and seems to start a few seconds faster.

Thank you for maintaining this great little library!

Kind regards
Felix Lechner

@lechner
Copy link
Copy Markdown

lechner commented Jun 27, 2023

Hi,

This PR has another positive side effect. Aside from the speed up, it fixed an annoying problem I've had with my multi-head setup for a while.

Previously, my third monitor would only come up about sixty percent of the time, although I'm not sure how to explain that interaction with xrandr in my init.el. That's now fixed!

Kind regards
Felix

@minad
Copy link
Copy Markdown

minad commented Jan 14, 2024

@Stebalien Have you seen this patch? What do you think about it?

@Stebalien
Copy link
Copy Markdown

This seems completely reasonable. (and @wasamasa has his papers in order, unless I'm mistaken).

@Stebalien
Copy link
Copy Markdown

But the fact that emacs-exwm/xelb isn't a fork is really annoying when it comes to porting PRs...

tarsius pushed a commit to emacsmirror/xelb that referenced this pull request Apr 28, 2025
Before Emacs 29, when-let (and friends) lived in subr-x, which isn't
autoloaded.

* xcb-types.el: require subr-x before Emacs 29 (fixes emacs-exwm/exwm#130).
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.

4 participants