Skip to content
This repository was archived by the owner on Oct 14, 2025. It is now read-only.

Conversation

MrKrzYch00
Copy link
Contributor

@MrKrzYch00 MrKrzYch00 commented Apr 22, 2016

  • Small speed up when running a lot of iterations

Before:
real 13m55.064s
user 13m54.610s
sys 0m0.180s

After:
real 13m48.580s
user 13m48.555s
sys 0m0.010s

  • tested on Odroid U3 O/C 1.92Ghz, 5000 iterations on old lodepng.cpp
    sourcecode file. Default makefile used.

The speed improvement should be greater when Hash Same Hash is enabled.

- Small speed when running a lot of iterations

Before:
real    13m55.064s
user    13m54.610s
sys     0m0.180s

After:
real    13m48.580s
user    13m48.555s
sys     0m0.010s

* tested on Odroid U3 O/C 1.92Ghz, 5000 iterations on old lodepng.cpp
sourcecode file.
@jibsen
Copy link
Contributor

jibsen commented Jul 21, 2016

Technically, you are not guaranteed that int is using two's-complement, so you cannot set them to -1 using memset. I know it will likely be hard to find a platform where this is not the case, but perhaps it is better to stay on the safe side of the standard if the improvement is so relatively small?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants