megaease/easeagent-sdk-net

Replace class with Struct for data entity

Opened this issue · 4 comments

There are various class that represents the data entity. we can switch to struct to reduce heap memory if possible.

Thank you for your advice. The choice between using a class or a struct depends on the requirements and design considerations. So, which parts of this project do you think could be changed to use structs, and how would you suggest making those modifications?

C# has been evolving since .NET 5. Struct has many benefits in peformance.

will improve that in the following PRs.

will improve that in the following PRs.

which class of this project do you think could be changed to use structs?
If you are interested, you can help improve it and then submit a PR.