Skip to content

Commit

Permalink
add release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
dipinhora committed Oct 22, 2024
1 parent 9672f4a commit 2051985
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .release-notes/4531.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Make actor heap allocations more efficient by recycling freed memory

Prior to this change, the actor heap garbage collection process would return freed memory back to the pony runtime at the end of a garbage collection run. The returning of memory to the pony runtime and allocating of new memory from the pony runtime are both expensive operations. This change makes it so that the actor garbage collection process keeps old freed memory chunks around with the expectation that the actor will very likely need memory again as it continues to run behaviors. This avoids the expensive return to and reallocation of memory from the pony runtime. It is possible that the overall application might end up using more memory as any freed memory chunks can only be reused by the actor that owns them and the runtime and other actors can no longer reuse that memory as they previously might have been able to.

0 comments on commit 2051985

Please sign in to comment.