Skip to content

dix: use xorg_list saveSet list#1639

Open
metux wants to merge 1 commit intomasterfrom
pr/dix-use-xorg-list-saveset-list-_2025-12-11_17-59-14
Open

dix: use xorg_list saveSet list#1639
metux wants to merge 1 commit intomasterfrom
pr/dix-use-xorg-list-saveset-list-_2025-12-11_17-59-14

Conversation

@metux
Copy link
Copy Markdown
Contributor

@metux metux commented Dec 11, 2025

Simplify saveSet handling by just using trivial struct xorg_list instead
of complicated dynamically resized array. Common operations like insert or
remove are much simpler using lists instead of arrays.

Signed-off-by: Enrico Weigelt, metux IT consult info@metux.net

@metux metux self-assigned this Dec 11, 2025
@metux metux force-pushed the pr/dix-use-xorg-list-saveset-list-_2025-12-11_17-59-14 branch from 695c460 to 4adf438 Compare December 15, 2025 09:26
@stefan11111
Copy link
Copy Markdown
Contributor

@metux Are these arrays heavily used for random access/addition/removal?

If so, we're significantly impacting performance by moving to linked lists.

@metux
Copy link
Copy Markdown
Contributor Author

metux commented Feb 2, 2026

@metux Are these arrays heavily used for random access/addition/removal?

I really doubt that. In general, usage of saveset's should be pretty rare.

@metux metux force-pushed the pr/dix-use-xorg-list-saveset-list-_2025-12-11_17-59-14 branch 3 times, most recently from 08eac20 to 4b3ad73 Compare February 3, 2026 16:21
@metux metux force-pushed the pr/dix-use-xorg-list-saveset-list-_2025-12-11_17-59-14 branch from 4b3ad73 to c960c61 Compare April 21, 2026 15:05
Simplify saveSet handling by just using trivial `struct xorg_list` instead
of complicated dynamically resized array. Common operations like insert or
remove are much simpler using lists instead of arrays.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
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.

2 participants