[c++/python] Addition of SOMAContext to reduce thread count#2158
Merged
[c++/python] Addition of SOMAContext to reduce thread count#2158
SOMAContext to reduce thread count#2158Conversation
nguyenv
commented
Feb 21, 2024
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #2158 +/- ##
==========================================
- Coverage 78.39% 72.08% -6.32%
==========================================
Files 135 102 -33
Lines 10699 6879 -3820
Branches 211 215 +4
==========================================
- Hits 8388 4959 -3429
+ Misses 2209 1821 -388
+ Partials 102 99 -3
Flags with carried forward coverage won't be shown. Click here to find out more.
|
This was referenced Feb 21, 2024
johnkerl
added a commit
that referenced
this pull request
Feb 22, 2024
…2165) * Sync `main` to `release-1.7` as much as possible * add new files
bkmartinjr
reviewed
Feb 22, 2024
bkmartinjr
reviewed
Feb 22, 2024
bkmartinjr
reviewed
Feb 22, 2024
bkmartinjr
reviewed
Feb 22, 2024
bkmartinjr
reviewed
Feb 22, 2024
bkmartinjr
reviewed
Feb 22, 2024
bkmartinjr
requested changes
Feb 22, 2024
Member
bkmartinjr
left a comment
There was a problem hiding this comment.
The only substantive comment is related to a missing lock around context instantiation in _soma_tiledb_context.py. It looks like it needs a lock.
added 11 commits
February 23, 2024 08:44
6e47da4 to
2421648
Compare
nguyenv
commented
Feb 23, 2024
|
The backport to To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-release-1.7 release-1.7
# Navigate to the new working tree
cd .worktrees/backport-release-1.7
# Create a new branch
git switch --create backport-2158-to-release-1.7
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick --mainline 1 5b8daaee382a1a75aa2233afb78db73d7b0944f5
# Push it to GitHub
git push --set-upstream origin backport-2158-to-release-1.7
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-release-1.7Then, create a pull request where the |
johnkerl
added a commit
that referenced
this pull request
Feb 23, 2024
johnkerl
added a commit
that referenced
this pull request
Feb 23, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue and/or context:
#2149
Locally, the thread count with these changes is now:
With 1.7, after the DataFrame refactoring, the counts were
With 1.6, prior to the DataFrame refactor:
Changes:
SOMAContextto replacetiledb::Contextarguments. Ultimately it is just a very simple wrapper aroundtiledb::Contextbut will aid in transitioning us out of tiledb-py usage by slowly eliminating usage oftiledb.Ctx()in favor ofSOMAContextSOMAContextbetween C++ and Python and avoid needing to create new Contexts unless necessarySOMACollectionto directly inherit fromSOMAGroupso that they may be dynamically casted in theSOMAObject::openfactoryNotes for Reviewer: