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

Improve logger performance #160

Open
jwaa opened this issue Apr 16, 2020 · 1 comment
Open

Improve logger performance #160

jwaa opened this issue Apr 16, 2020 · 1 comment
Labels
request A request for a new feature

Comments

@jwaa
Copy link
Member

jwaa commented Apr 16, 2020

Is your feature request related to a problem? Please describe.
Currently we have Logger to log data in our worlds. However, these are quite inefficient. It slows down the world when we add more and more loggers to the world. This occurs in the Coactive Teaming research project.

Describe the solution you would like
A way that improves on the efficiency of continuous logging. For example by buffering the data and write it to a file in bulk instead of for each tick a line. Though we need to profile the Logger class to see where the exact bottleneck lies.

Describe alternatives you have considered
Instead of logging in realtime to a file, buffer all data and write this to a file when the world completes.

Additional context
N/A

@jwaa jwaa added the request A request for a new feature label Apr 16, 2020
@thaije
Copy link
Collaborator

thaije commented Nov 25, 2021

As an alternative, we can also use a seperate thread dedicated to logging, as proposed in #14.

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

No branches or pull requests

2 participants