Skip to content

Add support for Reclass inventory queries#168

Draft
simu wants to merge 21 commits intomainfrom
feat/inventory-queries
Draft

Add support for Reclass inventory queries#168
simu wants to merge 21 commits intomainfrom
feat/inventory-queries

Conversation

@simu
Copy link
Copy Markdown
Member

@simu simu commented May 20, 2025

Checklist

  • The PR has a meaningful title. The title will be used to auto generate the changelog
  • PR contains a single logical change (to build a better changelog).
  • Update the documentation.
  • Update tests.
  • Categorize the PR by setting a good title and adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency, internal
    as they show up in the changelog
  • Link this PR to related PRs or issues.

TODO

  • Look at performance
  • Add more test coverage
  • Add Python test coverage which compares to Python reclass

@simu simu added the enhancement New feature or request label May 20, 2025
@simu simu marked this pull request as draft May 20, 2025 14:00
@github-actions

This comment was marked as outdated.

@simu simu force-pushed the feat/inventory-queries branch from 6467a45 to 99dad9e Compare May 20, 2025 14:04
@github-actions

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@simu simu force-pushed the feat/inventory-queries branch from ae043d7 to 011da57 Compare September 19, 2025 09:20
@github-actions

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@simu simu force-pushed the feat/inventory-queries branch from 6a0d9f1 to ed5dfd0 Compare September 19, 2025 09:51
@github-actions

This comment was marked as outdated.

@simu simu force-pushed the feat/inventory-queries branch from ed5dfd0 to c5989cb Compare September 19, 2025 14:49
@github-actions

This comment was marked as outdated.

@simu simu force-pushed the feat/inventory-queries branch from c5989cb to 6f6a040 Compare February 20, 2026 13:44
@github-actions

This comment was marked as outdated.

@simu simu force-pushed the feat/inventory-queries branch from 6f6a040 to 55a97d4 Compare February 20, 2026 13:54
@github-actions
Copy link
Copy Markdown

Benchmark for 07d2439

Click to view benchmark
Test Base PR %
Reclass::inventory() multi-threaded 2.2±0.14ms 2.6±0.16ms +18.18%
Reclass::inventory() single-threaded 4.7±0.09ms 4.7±0.07ms 0.00%

simu and others added 13 commits March 13, 2026 15:11
This doesn't yet implement inventory queries in the reference parser and
the interpolation. Also, the interpolation order between parameters and
exports is currently a guess.
The approach of only parsing inventory queries after resolving
references probably won't work, since we don't know whether a query was
escaped or not at that point.

To do this properly, we'll have to extend / refactor the ref parser to
become a ref+invquery parser.
Test coverage isn't great yet, and some inventory query features are not
yet implemented.
@simu simu force-pushed the feat/inventory-queries branch from 55a97d4 to 78da567 Compare March 13, 2026 14:12
@github-actions
Copy link
Copy Markdown

Benchmark for 851c079

Click to view benchmark
Test Base PR %
Reclass::inventory() multi-threaded 2.5±0.13ms 2.9±0.21ms +16.00%
Reclass::inventory() single-threaded 4.8±0.05ms 4.9±0.11ms +2.08%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant