Skip to content

Replacing Thread with Task in FileSaver #143

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

Conversation

ahmed-shariff
Copy link
Contributor

This PR replaces the use of Thread with Task in FileSaver. I had had a large number of trackers (>50) in one of my scenes and the I/O was a performance bottleneck, which is a big problem for me as it impacts my time calculations. Using tasks allows to use more threads and also is a cleaner interface (and also recommended).

@jackbrookes
Copy link
Member

Hi, thanks for this! I'd need to do some testing on this. Have you tried running the existing Unit Tests with the Unity Test Runner to see if they pass? Can you think of any other tests to ensure this functionality is working as expected?

@ahmed-shariff
Copy link
Contributor Author

The test runner passes all the tests. I'll also go over the tests and see what I can add to it.

@ahmed-shariff
Copy link
Contributor Author

I take back what I had said earlier, while there are gains in some place, it seems to be clogging the GC (I think). I'll try out a few other things and see how it pans out. Put in another PR if that works out.

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

Successfully merging this pull request may close these issues.

2 participants