Replace class with Struct for data entity
Opened this issue · 4 comments
gaufung commented
There are various class that represents the data entity. we can switch to struct to reduce heap memory if possible.
observeralone commented
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?
gaufung commented
C# has been evolving since .NET 5. Struct has many benefits in peformance.
gaufung commented
will improve that in the following PRs.
observeralone commented
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.