Closed ajoubertza closed 4 years ago
The extra call to set_value is not necessary, and is resulting in a memory leak, as some data it allocates is not released. This is noticeable when pushing a high number of change events for a DevEncoded attribute.
set_value
See: https://github.com/tango-controls/TangoTickets/issues/30
Thanks!
Well done!
Thanks for the PR! I confirm it also fixes the mem leak that we observed in Sardana.
Nice catch! Thanks to @ajoubertza and @bourtemb for helping fix this issue.
The extra call to
set_value
is not necessary, and is resulting in a memory leak, as some data it allocates is not released. This is noticeable when pushing a high number of change events for a DevEncoded attribute.See: https://github.com/tango-controls/TangoTickets/issues/30