From 2051985d19c47ca8693311fa2c45d163ac3c2c63 Mon Sep 17 00:00:00 2001 From: Dipin Hora Date: Tue, 22 Oct 2024 16:16:14 -0400 Subject: [PATCH] add release notes --- .release-notes/4531.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .release-notes/4531.md diff --git a/.release-notes/4531.md b/.release-notes/4531.md new file mode 100644 index 0000000000..2895183ca1 --- /dev/null +++ b/.release-notes/4531.md @@ -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. \ No newline at end of file