Skip to content

✨ BytesStorage uint8At #1400

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 21, 2025
Merged

✨ BytesStorage uint8At #1400

merged 3 commits into from
Apr 21, 2025

Conversation

Vectorized
Copy link
Owner

Description

Very efficient.

Checklist

Ensure you completed all of the steps below before submitting your pull request:

  • Ran forge fmt?
  • Ran forge test?

Pull requests with an incomplete checklist will be thrown out.

Copy link

github-actions bot commented Apr 21, 2025

Gas Snapshot Comparison Report

Generated at commit : 14a63f4, Compared to commit : dcdfab8

Contract Name Test Name Main Gas PR Gas Diff
LibStringTest testBytesToHexStringNoPrefix() 4466 4488 22
testContains() 44604 44626 22
testSetAndGetStringStorage() 2339009 2358635 19626
testStringDirectReturn() 6697 6961 264
testStringEscapeJSONHexEncode() 698533 718640 20107
testStringIs7BitASCII() 205368 205346 -22
testStringLastIndexOf() 24847 24869 22
testStringPackAndUnpackOne() 723040 745232 22192
testStringPackAndUnpackTwo() 4243725 903523 -3340202
testStringRepeatOriginal() 9683 9705 22
testStringReplaceLong() 8162 8184 22
testStringReplaceMedium() 7423 7357 -66
testStringReplaceShort() 12253 12275 22
testStringSplit() 20583 20518 -65
testStringStartsWith() 3495 3473 -22
testToHexStringUint256Max() 3420 3442 22
testToMinimalHexStringNoPrefixZero() 808 830 22
testToMinimalHexStringZero() 851 873 22
testToStringPositiveNumberBrutalized() 574441 593695 19254
testToStringSignedOriginalGas() 9921 9876 -45
testToStringUint256Max() 6666 6644 -22
testToStringUint256MaxBrutalized() 585652 605231 19579
testToStringZeroBrutalized() 573701 593492 19791
test__codesize() 50361 51311 950
testUint8AtStringStorage() - 67050 -

@Vectorized Vectorized merged commit fd2f9f1 into main Apr 21, 2025
13 checks passed
@Vectorized Vectorized deleted the bytes-storage-at branch April 21, 2025 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant