Unsubscribe from events - Any benefits ?

Created at 28 Feb 2023, 11:28


Joined 19.03.2020

Unsubscribe from events - Any benefits ?
28 Feb 2023, 11:28


I wonder if unsubscribing from events can have an impact in performance (e.g.: reduce RAM usage).

It is not that easy to manage cAlgo methods when you don't really know how these manage memory resources.

Is there any documentation about this?

Thank you.


01 Jun 2023, 06:00

This is more a C# thing than a cTrader thing.

If you unsubscribe from events, it could free up some resources and make available for garbage collection.

Do a little Google research.




01 Jun 2023, 19:20

Hi firemyst,

At that time I made some research on this, however, what I wanted to know is how this is managed internally by cAlgo.

Nonetheless, at this stage I am more than aware that performance issues have nothing to do with my code.