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

Conversation

@fhartwig
Copy link
Contributor

fhartwig commented Oct 13, 2016

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.


This change is Reviewable

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.
@notriddle
Copy link

notriddle commented Oct 13, 2016

Are we still maintaining this? I thought we switched to https://github.com/PistonDevelopers/image-png

@fhartwig
Copy link
Contributor Author

fhartwig commented Oct 13, 2016

Sorry, I hadn't realised that this repo was unmaintained. Although I guess the date of the last commit should have tipped me off.

@fhartwig fhartwig closed this Oct 13, 2016
@Ms2ger Ms2ger reopened this Oct 14, 2016
@Ms2ger Ms2ger merged commit ffbf5bb into servo:master Oct 14, 2016
@Ms2ger
Copy link
Contributor

Ms2ger commented Oct 14, 2016

Still, you made the PR, so I might as well merge it

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

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.