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

A few performance improvements to XbMachine #140

Merged
merged 4 commits into from
Aug 10, 2023

Conversation

chergert
Copy link
Contributor

@chergert chergert commented Aug 1, 2023

Nothing crazy, just ensuring more things get inlined and allow for more compiler optimizations in surrounding code. Also -Bsymbolic and -fno-plt linker options.

The bigger wins here will still be in making Software cache more XbQuery likely.

Related to #139

chergert added 4 commits July 31, 2023 18:50
Because we must apply side-effects from parameters in g_log(), these will
result in string formatting even through the log level may not
currently include debug messages.
-Bsymbolic and no-plt so we are more likely to get direct function calls.

Additionally disable "FOO_BAR()" style type checks on casting in release
builds along with "g_assert()". Only for libxmlb, not any tests.
This gets a few things that are currently not getting inlined across
modules into a form that can be inlined and optimized.
@chergert chergert force-pushed the wip/chergert/machine-speedup branch from 1f7bd12 to 245a742 Compare August 1, 2023 01:51
@hughsie hughsie merged commit 422c08c into hughsie:main Aug 10, 2023
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