new BigInteger(String) performance / complexity

后端 未结 3 2025
猫巷女王i
猫巷女王i 2021-01-11 15:08

I\'m wondering about the performance/complexity of constructing BigInteger objects with the new BigInteger(String) constructor

3条回答
  •  忘掉有多难
    2021-01-11 15:41

    You're actually measuring the time it takes to parse a string and create the BigInteger. Numeric operations involving BigIntegers would be a lot more efficient than this.

提交回复
热议问题