Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Struct-of-arrays vs array-of-structs #19

Closed
cserteGT3 opened this issue May 13, 2020 · 1 comment
Closed

Struct-of-arrays vs array-of-structs #19

cserteGT3 opened this issue May 13, 2020 · 1 comment

Comments

@cserteGT3
Copy link
Owner

cserteGT3 commented May 13, 2020

Struct-of-arrays would maybe a better way to store ScoredShapes.
There's a huge garbage collection in the findhighestscore() function, due to calling getproperty() many times.
One problem with SoA approach is, that one of the arrays would be FittedShape[], which is an abstract container.

Edit: should I use a package, or implement it myself?

This was referenced May 13, 2020
@cserteGT3
Copy link
Owner Author

Implemented myself in #22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant