Skip to content

Simplify conversions between values and QVariants#13836

Merged
magnesj merged 3 commits intodevfrom
pdm-compile-bench-01
Apr 8, 2026
Merged

Simplify conversions between values and QVariants#13836
magnesj merged 3 commits intodevfrom
pdm-compile-bench-01

Conversation

@magnesj
Copy link
Copy Markdown
Member

@magnesj magnesj commented Apr 6, 2026

Closes #13835

magnesj added 3 commits April 6, 2026 12:57
Adds an OBJECT library with UNITY_BUILD OFF to measure per-file compile
cost of PDM field types in isolation. Wired into both Fwk/CMakeLists.txt
and the main CMakeLists.txt (under RESINSIGHT_INCLUDE_APPFWK_TESTS).
Also adds build-bench to .gitignore.
…lPdmValueFieldSpecializations.h

Introduce cafPdmFieldTraits.h with ADL-based pdmToVariant/pdmFromVariant/pdmVariantEqual
as a replacement for PdmValueFieldSpecialization. Migrate all types (AppEnum, FilePath,
PdmPointer, cvf types) and all call sites (PdmDataValueField, PdmProxyValueField, UI
framework, ApplicationLibCode). Delete cafInternalPdmValueFieldSpecializations.h.
Add cafPdmFieldTraits unit tests and fix std::optional support.
@magnesj magnesj marked this pull request as ready for review April 8, 2026 06:40
@magnesj magnesj requested a review from kriben April 8, 2026 06:40
Copy link
Copy Markdown
Collaborator

@kriben kriben left a comment

Choose a reason for hiding this comment

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

LGTM!

@magnesj magnesj merged commit 700549f into dev Apr 8, 2026
23 of 24 checks passed
@magnesj magnesj deleted the pdm-compile-bench-01 branch April 8, 2026 10:37
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.

Replace the PdmValueFieldSpecialization<T> policy class pattern with ADL-based free functions

2 participants