Don't benchmark mine quite yet; I have optimizations and such that I haven't gotten around to uploading. (I'll upload in the morning)It might be faster even still, but I'm just saying.
Please rename your functions as well. "add" can easily be overwritten by accident.
Will do. I'll post here when the file at http://Ipquarx.com/Math.cs is updated.
Here's a better first question: What do you need high-level cryptography in Blockland for?!
I can tell you already that yours is much faster at multiplying than McTwist's. You're also missing a division function.I'm having trouble benchmarking Red Guy's since his uses objects, and those don't play nicely with the benchmarker.edit:Here are the initial results. http://pastebin.com/zYtrXQ6dPlease note that these are not formatted yet. They do not include Ip's updated math library and do not include Red Guy's library (see above).I'll get new results once Ip finishes his updates.
i'm really digging those results
Here are the initial results. http://pastebin.com/zYtrXQ6d
$benchmark_div__mctwist__1234567890__2 = "0";$benchmark_mul__ipquarx__150__150 = "0";$benchmark_sub__ipquarx__200__150 = "0";Are you a wizard?Anyway, we really need better benchmarking and unit testing suites in general.
Zero probably means <31.25ms. Not sure how they did it.