Skip to content

Add IdentifierHash::if_exists - #615

Merged
MaciejKaszynski merged 2 commits into
eclipse-score:mainfrom
etas-contrib:identifier-hash-if-exists
Sep 9, 2026
Merged

Add IdentifierHash::if_exists#615
MaciejKaszynski merged 2 commits into
eclipse-score:mainfrom
etas-contrib:identifier-hash-if-exists

Conversation

@danth

@danth danth commented Sep 8, 2026

Copy link
Copy Markdown
Member

This constructs an identifier hash only if it already exists, which is useful to avoid allocating.

Will be used to address #489 (comment).

I'm submitting this separately because it is not dependent on the other changes in that pull request.

@danth
danth requested a deployment to workflow-approval September 8, 2026 15:45 — with GitHub Actions Waiting
@danth
danth requested a deployment to workflow-approval September 8, 2026 15:45 — with GitHub Actions Waiting
@danth
danth force-pushed the identifier-hash-if-exists branch from 898fa10 to 6b4f869 Compare September 8, 2026 15:46
@danth
danth requested a deployment to workflow-approval September 8, 2026 15:46 — with GitHub Actions Waiting
@danth
danth requested a deployment to workflow-approval September 8, 2026 15:46 — with GitHub Actions Waiting
@danth danth changed the title Add IdentiferHash::if_exists Add IdentifierHash::if_exists Sep 8, 2026
@danth
danth force-pushed the identifier-hash-if-exists branch from 6b4f869 to f6b6462 Compare September 8, 2026 15:48
@danth
danth requested a deployment to workflow-approval September 8, 2026 15:48 — with GitHub Actions Waiting
@danth
danth requested a deployment to workflow-approval September 8, 2026 15:48 — with GitHub Actions Waiting
@danth
danth force-pushed the identifier-hash-if-exists branch from f6b6462 to bf71761 Compare September 8, 2026 15:49
@danth
danth requested a deployment to workflow-approval September 8, 2026 15:49 — with GitHub Actions Waiting
@danth
danth requested a deployment to workflow-approval September 8, 2026 15:49 — with GitHub Actions Waiting
@danth

danth commented Sep 8, 2026

Copy link
Copy Markdown
Member Author

Note that the IdentifierHash registry carries over between tests, which is not nice. This means I had to use a unique string in each unit test otherwise they interfere with each other.

Comment thread score/launch_manager/src/daemon/src/common/identifier_hash.cpp Outdated
Comment thread score/launch_manager/src/daemon/src/common/identifier_hash.cpp
Comment thread score/launch_manager/src/daemon/src/common/identifier_hash.hpp Outdated
This constructs an identifier hash only if it already exists,
which is useful to avoid allocating.
@danth
danth force-pushed the identifier-hash-if-exists branch from bf71761 to 2b6f6ea Compare September 9, 2026 08:16
@danth
danth deployed to workflow-approval September 9, 2026 08:16 — with GitHub Actions Active
@danth
danth deployed to workflow-approval September 9, 2026 08:16 — with GitHub Actions Active
@MaciejKaszynski
MaciejKaszynski merged commit 28160b2 into eclipse-score:main Sep 9, 2026
15 of 16 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in LCM - Lifecycle & Health FT Sep 9, 2026
@danth
danth deleted the identifier-hash-if-exists branch September 9, 2026 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants