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

Use vec! macro instead of iterator to initialise buffer #81

Merged
merged 1 commit into from Oct 14, 2016

Commits on Oct 13, 2016

  1. Use vec! macro instead of iterator to initialise buffer

    The vec! macro is much faster than using `collect` to initialise a vector.
    This change decreases the run time of `load_png_from_memory` by 20%-30%
    on my machine.
    fhartwig committed Oct 13, 2016
You can’t perform that action at this time.