forked from chapel-lang/chapel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust CopyAggregation aggregators to have the option of not freeing …
…buffers on flush (chapel-lang#26681) Before this PR, CopyAggregation aggregators always free the buffers on a `flush`, because that function was written primarily for the case of freeing the aggregator, in which case freeing the buffers immediately avoids the need to do it later. However, in some application use cases, it's useful to keep aggregators around for longer to avoid overheads of creating and destroying aggregators. It might be necessary to call 'flush' on SrcAggregator so that the appropriate data is loaded, but that aggregator might be used again, so it's not helpful to free the buffers. This PR adjusts 'flush' to accept an argument to indicate if the buffers should be freed or not. In my opinion, it would make more sense for the default for `flush` to be to not free the buffer. However, this PR does not change that, to avoid creating performance noise for any existing uses of this function (as in Arkouda). This change was suggested by @ronawho. Reviewed by @stonea - thanks! - [x] full comm=none testing - [x] full comm=gasnet oversubscribed testing
- Loading branch information
Showing
4 changed files
with
35 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--freeBuffers=true | ||
--freeBuffers=false |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
4 |