I think that String parsing performance can be improved. 4000 cases with BigInts up to 1280 bits take ~40s on my laptop (2014 rMBP -> mac 11.7 (Big Sur), Xcode 13.2.1, Intel), Violet does this in 1.5s (there is a separate performance PR).
Violet secret:
Instead of using a single BigInt and multiplying it by radix,
we will group scalars into words-sized chunks.
Then we will raise those chunks to appropriate power and add together.
Please read the #242 Using tests from “Violet - Python VM written in Swift” before.
All pass.
String parsing
I think that
String
parsing performance can be improved. 4000 cases withBigInts
up to 1280 bits take ~40s on my laptop (2014 rMBP -> mac 11.7 (Big Sur), Xcode 13.2.1, Intel), Violet does this in 1.5s (there is a separate performance PR).Violet secret:
Implemented here. Should I create an issue for this?