Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Update README: GC cycle collection
  • Loading branch information
BenMorel authored Apr 2, 2024
1 parent 032b88d commit bbeaff6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Here is how it works:

- calls to `count()` will always garbage collect dangling references immediately
- using array-like features: set, get, `isset()`, `unset()` will perform garbage collection at least every 100 operations (less often for large WeakMaps).
- when GC cycles are collected (automatically or via `gc_collect_cycles()`), garbage collection will trigger immediately

This offers a reasonable trade-off between performance and memory usage.

Expand Down

0 comments on commit bbeaff6

Please sign in to comment.