Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#42 Fix memory and performance leak.
- If multiple callbacks are registered under the same conflicting key, only the last one will survive. - It would be especially bad if the callback was re-registered periodically. The memory would increase and even all historical callbacks would be executed during each iteration.
- Loading branch information
1 parent
210b37f
commit 5e35e68
Showing
1 changed file
with
7 additions
and
11 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