Commit Graph

34 Commits

Author SHA1 Message Date
Jacek Sieka b88ed93a44
Merge pull request #10 from status-im/primitives
Reuse stint primitives for limbs
2024-08-08 22:22:17 +02:00
Jacek Sieka 03c2569177
aaaaaaaaaaarrrrrrrrrrggggggggggggghhhhhhhhhhhhhhh 2024-08-08 18:36:07 +02:00
Jacek Sieka 3ffca4d248
imports 2024-08-08 18:28:51 +02:00
Jacek Sieka 5b38e791dc
more fallbacks 2024-08-08 18:07:16 +02:00
Jacek Sieka 8aadf13bb5
oops 2024-08-08 17:36:32 +02:00
Jacek Sieka dca7819f2b
add back 32-bit support 2024-08-08 17:18:21 +02:00
Jacek Sieka 1920adc42e
Reuse stint primitives for limbs
This PR makes bncurve less slow by reusing stint integer primtivies and
unrolling a few loops and arrays to avoid array length checks and the
like.

To give an idea, it brings down processing 8k nimbus-eth1 blocks around
the 18M block height mark from 24 to 16 minutes - this is quite
significant given that a lot of time in eth1 is spent reading the
database - this is at least an order of magnitude of bncurve improvement
but probably quite a lot more - how much doesn't greatly matter but now
there's at least a decent baseline for any future performance work ;)

Of course, reusing private primitives from `stint` is not pretty - the
plan is to extract them to a separate library, work started in
https://github.com/status-im/nim-stew/pull/187.
2024-08-08 16:29:06 +02:00
tersec 9c10dec560
test with --styleCheck:error 2024-06-06 22:06:06 +00:00
tersec 6d5e811e4f
Merge pull request #9 from status-im/DvT
require Nim 1.6 or newer
2024-06-06 21:08:23 +00:00
tersec 0ee1bc7264
require Nim 1.6 or newer 2024-06-06 20:50:50 +00:00
jangko 9677794afb
add github action 2022-04-08 09:04:30 +07:00
jangko edc8371274
fix styles 2022-04-08 09:04:30 +07:00
jangko d2935bc074
rm obsolete/unused/unmaintained CI AppVeyor and Travis scripts 2022-04-07 21:21:29 +07:00
Ștefan Talpalaru 9b8aac5632
update script path 2019-08-24 02:09:49 +02:00
Ștefan Talpalaru 09d0f93fb1
Merge branch 'buildnim' 2019-06-18 22:29:24 +02:00
Ștefan Talpalaru 3aff0f51a4
build_nim.sh 2019-06-18 21:42:41 +02:00
Ștefan Talpalaru c356fd9fa9
assert() -> doAssert() 2019-03-14 00:10:49 +01:00
Ștefan Talpalaru 8c74ae19a9
Merge branch 'threads' 2019-01-17 19:29:54 +01:00
Ștefan Talpalaru 0def1e76f1
enable "--threads:on" for tests 2019-01-08 23:30:36 +01:00
Bruno Škvorc c81464f485
Update README.md 2019-01-02 15:06:09 +01:00
Eugene Kabanov 46a52aba70
Merge pull request #3 from status-im/nimcrypto
Nimble considers URL deps different from name deps
2018-12-26 11:03:12 +02:00
Ștefan Talpalaru 1e0af48411
Nimble considers URL deps different from name deps
and it installs the same package again, at a version tag, even though
@#head was already available, then it errors out: 68bb97f30a/src/nimble.nim (L198)
- added a .gitignore for the "tests" dir
2018-12-25 13:39:38 +01:00
cheatfate 7709d551c8 Added Ethereum specific serialization procedures.
Added tests for Ethereum ecAdd, ecMul, ecPairing procedures.
Bump version to 1.0.1.
2018-10-16 11:30:14 +03:00
cheatfate a76336549b Added AffinePoint[G1,G2] initalization procedures.
Added more tests from Paritytech fork.
Removed Coeff[T] type.
2018-10-04 21:54:21 +03:00
Eugene Kabanov 60dec2981f
Merge pull request #2 from status-im/review1
Fixes for review.
2018-10-04 14:04:58 +03:00
cheatfate 6a77687802 Fixes for review. 2018-10-04 13:29:13 +03:00
cheatfate 84f2d371b9 README fix `bn` package link. 2018-10-04 13:21:29 +03:00
cheatfate ea38d7b5b8 Move testing to `release` mode only.
Reduce number of test vectors.
2018-09-28 03:43:58 +03:00
cheatfate 06071e5ad8 Reduce number of test vector tests to pass CI timeout issue. 2018-09-28 03:27:34 +03:00
cheatfate 8aea7ec56a Fix `bn` library link. 2018-09-27 20:23:34 +03:00
cheatfate 833574837f Reduce number of test vectors for debug builds.
Force full recompilation of sources.
2018-09-27 14:04:40 +03:00
cheatfate 2a250634d0 Add nimcrypto dependency. 2018-09-27 13:46:06 +03:00
cheatfate 4b8f6db181 Initial commit. 2018-09-27 13:35:59 +03:00
Eugene Kabanov 7b55d96b2f
Initial commit 2018-09-27 13:00:36 +03:00