Commit Graph

10 Commits

Author SHA1 Message Date
Alain Mosnier 61555d4567
While I'm at it, squeeze out a little more performance
by changing some integer regular arithmetic to bitwise operations.

I'm not sure that would make any difference if I used optimized
compilation, but it might still make a difference on some old
compilers.

It seems to make a difference on gcc without optimization on my Linux
machine (and, of course, it does not break the tests).

Before:
real	1m6,707s
user	1m6,035s
sys	0m0,672s

After:
real	1m6,352s
user	1m5,672s
sys	0m0,680s
2019-08-04 14:20:53 +02:00
Alain Mosnier db722a7329
Issue #3: implementation as proposed (hopefully)
The full test suite runs fine and the performance numbers are:

Before:
real	1m7,040s
user	1m6,319s
sys	0m0,716s

After:
real	1m6,707s
user	1m6,035s
sys	0m0,672s

Not bad. But mostly, it saves stack. Nice. :-)
2019-08-03 23:16:14 +02:00
Alain Mosnier d6b49c65bd Fixed minor warnings 2017-12-15 23:00:29 +01:00
Alain Mosnier cba84edcb5 Made changes according to review comments from StackExchange CODE REVIEW 2017-12-15 19:37:47 +01:00
Alain Mosnier da12ae4e94 Tests at compile time instead of runtime 2017-12-14 20:11:09 +01:00
Alain Mosnier b21a7b5529 Added comment 2017-12-13 12:03:01 +01:00
Alain Mosnier 85e93b4a79 Typo 2017-12-13 12:01:19 +01:00
Alain Mosnier ccc3d23b29 Added comment. 2017-12-13 12:00:03 +01:00
Alain Mosnier 489f5e66b6 Completed the implementation, including testing, and fixed bugs 2017-12-13 11:12:47 +01:00
Alain Mosnier d676207600 Started a SHA-256 implementation. Buggy so far. 2017-12-13 00:52:28 +01:00