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

Optimize organism's memory usage #42

Closed
tmptrash opened this issue Nov 1, 2019 · 0 comments
Closed

Optimize organism's memory usage #42

tmptrash opened this issue Nov 1, 2019 · 0 comments
Assignees
Milestone

Comments

@tmptrash
Copy link
Owner

tmptrash commented Nov 1, 2019

Сейчас при создании инстанса организма создаются такие поля:

  • loops
  • funcs

Их размер всегда равен максимальному размеру кода Config.orgMaxCodeSize, а это очень много. По сути, у нас всегда висит память, которая не используется. Нужно использовать объекты для хранения смещений. Это уменьшит использование памяти.

@tmptrash tmptrash self-assigned this Nov 1, 2019
@tmptrash tmptrash added this to the Optimizations milestone Nov 6, 2019
tmptrash added a commit that referenced this issue Nov 28, 2019
- moved all commands into separate map
- removed old energy based approach
- optimized organisms memory usage #42
- fixed many small mistakes in VM and BioVM

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

No branches or pull requests

1 participant