Skip to content

Commit 6f6ed05

Browse files
committed
docs: update changelog for buffer optimization
Add changelog entry documenting the performance optimization of buffer array allocations. The change uses np.asarray() instead of np.array() to avoid unnecessary copies when input is already a numpy array. This optimization provides significant performance improvements in reinforcement learning training loops with minimal risk as it maintains identical functional behavior.
1 parent 7708e80 commit 6f6ed05

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/misc/changelog.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Deprecations:
3535

3636
Others:
3737
^^^^^^^
38+
- Performance optimization: Use ``np.asarray()`` instead of ``np.array()`` in ``ReplayBuffer`` and ``RolloutBuffer`` to avoid unnecessary array copies (@sxngt)
3839

3940
Documentation:
4041
^^^^^^^^^^^^^^
@@ -1844,4 +1845,4 @@ And all the contributors:
18441845
@DavyMorgan @luizapozzobon @Bonifatius94 @theSquaredError @harveybellini @DavyMorgan @FieteO @jonasreiher @npit @WeberSamuel @troiganto
18451846
@lutogniew @lbergmann1 @lukashass @BertrandDecoster @pseudo-rnd-thoughts @stefanbschneider @kyle-he @PatrickHelm @corentinlger
18461847
@marekm4 @stagoverflow @rushitnshah @markscsmith @NickLucche @cschindlbeck @peteole @jak3122 @will-maclean
1847-
@brn-dev @jmacglashan @kplers @MarcDcls @chrisgao99 @pstahlhofen @akanto
1848+
@brn-dev @jmacglashan @kplers @MarcDcls @chrisgao99 @pstahlhofen @akanto @sxngt

0 commit comments

Comments
 (0)