Boilertalk / Web3.swift

A pure swift Ethereum Web3 library
MIT License
636 stars 187 forks source link

feat: performance optimizations for string manipulation #139

Closed koraykoska closed 1 year ago

koraykoska commented 1 year ago

Bytes to hex and vice versa was extremely slow.

codecov-commenter commented 1 year ago

Codecov Report

Merging #139 (b4352a2) into master (61d72b4) will decrease coverage by 0.04%. The diff coverage is 94.73%.

@@            Coverage Diff             @@
##           master     #139      +/-   ##
==========================================
- Coverage   73.61%   73.57%   -0.05%     
==========================================
  Files          68       68              
  Lines        5041     5048       +7     
==========================================
+ Hits         3711     3714       +3     
- Misses       1330     1334       +4     
Impacted Files Coverage Δ
Sources/Core/Toolbox/Bytes+HexString.swift 88.88% <90.90%> (-11.12%) :arrow_down:
Sources/ContractABI/ABI/ABIDecoder.swift 92.88% <100.00%> (ø)
Sources/Core/Toolbox/String+HexBytes.swift 93.05% <100.00%> (+0.09%) :arrow_up:
Sources/Core/Transaction/EthereumAddress.swift 93.75% <100.00%> (-0.10%) :arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.