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

Faster implementation of getSolutions #94

Open
julian-zucker opened this issue Jun 16, 2019 · 0 comments
Open

Faster implementation of getSolutions #94

julian-zucker opened this issue Jun 16, 2019 · 0 comments
Labels

Comments

@julian-zucker
Copy link
Member

Describe the refactor you'd like.
StandardPopulation.getSolutions should be rewritten to be faster and more space-efficient.

Why should the refactor happen?
Right now, StandardPopulation.getSolutions is implemented by converting the population to a vector, shuffling the whole thing and taking the first n elements. This is easy code to write and to understand, but obviously slow on large populations. (Populations shouldn't be large, but if they are, it's unacceptable for Evvo to grind to a halt.)

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

No branches or pull requests

1 participant