Skip to content

make object pool map#1356

Merged
Yurlungur merged 10 commits intodevelopfrom
jmm/object_pool_map
Jan 22, 2026
Merged

make object pool map#1356
Yurlungur merged 10 commits intodevelopfrom
jmm/object_pool_map

Conversation

@Yurlungur
Copy link
Collaborator

@Yurlungur Yurlungur commented Dec 18, 2025

PR Summary

@swjones and I are going to use @lroberts36 object pools for more things and I found that the map of pools based on shapes is a useful construct, so I am factoring it out of mesh so I can reuse it. This small MR does that.

PR Checklist

  • Code passes cpplint
  • New features are documented.
  • Adds a test for any bugs fixed. Adds tests for new features.
  • Code is formatted
  • Changes are summarized in CHANGELOG.md
  • Change is breaking (API, behavior, ...)
    • Change is additionally added to CHANGELOG.md in the breaking section
    • PR is marked as breaking
    • Short summary API changes at the top of the PR (plus optionally with an automated update/fix script)
  • CI has been triggered on Darwin for performance regression tests.
  • Docs build
  • (@lanl.gov employees) Update copyright on changed files

@Yurlungur Yurlungur self-assigned this Dec 18, 2025
@Yurlungur Yurlungur added the refactor An improvement to existing code. label Dec 18, 2025
@Yurlungur Yurlungur enabled auto-merge December 19, 2025 14:50
Copy link
Collaborator

@lroberts36 lroberts36 left a comment

Choose a reason for hiding this comment

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

This LGTM, only one real comment below.

It is often convenient to hold multiple pools, one for each different
size of object that we might want to pool. (For example for
differently shaped comm buffers.) We implement that via the
``ObjectPoolMap<T>`` type, which owns an arbitrary number of
Copy link
Collaborator

Choose a reason for hiding this comment

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

Have you considered ObjectWaterPark<T>?

@Yurlungur
Copy link
Collaborator Author

@pgrete and/or @swjones please take a look when you get the chance

@Yurlungur Yurlungur disabled auto-merge December 23, 2025 20:58
@Yurlungur Yurlungur enabled auto-merge December 23, 2025 20:58
@Yurlungur
Copy link
Collaborator Author

Reminder to @pgrete and @swjones please review.

Copy link
Collaborator

@pgrete pgrete left a comment

Choose a reason for hiding this comment

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

LGTM

@pgrete pgrete disabled auto-merge January 22, 2026 13:08
@pgrete pgrete enabled auto-merge (squash) January 22, 2026 13:08
@pgrete pgrete disabled auto-merge January 22, 2026 13:08
@Yurlungur Yurlungur enabled auto-merge January 22, 2026 19:27
@Yurlungur Yurlungur merged commit b288b44 into develop Jan 22, 2026
38 checks passed
@Yurlungur Yurlungur deleted the jmm/object_pool_map branch January 22, 2026 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor An improvement to existing code.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants