Avatar for the MystenLabs user
MystenLabs
walrus-sites
BlogDocsChangelog

feat(contract): Add range field to Resource

#234Merged
Comparing
170-feature-store-multiple-site-resources-as-a-single-blob
(
ed3cf40
) with
gg/move/upgrade
(
13e6c07
)
CodSpeed Performance Gauge
-53%
Improvements
1
Regressions
1
Untouched
5
New
0
Dropped
0
Ignored
0

Benchmarks

Failed

fetchPage: should successfully fetch the mocked landing page siteRegression
portal/common/lib/page_fetching.bench.ts::Page fetching with mocked network calls::fetchPage: should successfully fetch the mocked landing page site
CodSpeed Performance Gauge
-53%
4.8 ms
10.1 ms

Improved

decompress plaintext encoding
portal/common/lib/decompress_data.bench.ts::decompressData::decompress plaintext encoding
CodSpeed Performance Gauge
+13%
18 µs
15.9 µs

Passed

fetchPage: should successfully fetch a mocked page site using redirect
portal/common/lib/page_fetching.bench.ts::Page fetching with mocked network calls::fetchPage: should successfully fetch a mocked page site using redirect
CodSpeed Performance Gauge
+6%
51.1 ms
48 ms
decompress deflate encoding
portal/common/lib/decompress_data.bench.ts::decompressData::decompress deflate encoding
CodSpeed Performance Gauge
+3%
255.3 µs
247.3 µs
decompress gzip encoding
portal/common/lib/decompress_data.bench.ts::decompressData::decompress gzip encoding
CodSpeed Performance Gauge
+3%
260.6 µs
253.4 µs
fetchResource: fetch the flatlander site (with redirects)
portal/common/lib/resource.bench.ts::Resource fetching with mocked network calls::fetchResource: fetch the flatlander site (with redirects)
CodSpeed Performance Gauge
0%
3.4 ms
3.4 ms
fetchResource: fetch the landing page site (no redirects)
portal/common/lib/resource.bench.ts::Resource fetching with mocked network calls::fetchResource: fetch the landing page site (no redirects)
CodSpeed Performance Gauge
0%
1.4 ms
1.4 ms

Commits

Click on a commit to change the comparison range
Base
gg/move/upgrade
13e6c07
-46%
Add range field to Resource This is used when multiple resources share the same blob. To extract each resource, the byte range field specifies the slice of the blob to retrieve.
1af6286
4 months ago
by Tzal3x
+166%
Use Range struct to define the resource bytes inside the blob
095f5a3
4 months ago
by Tzal3x
-210%
Add tests for new_resource
991133c
4 months ago
by Tzal3x
+2%
Publish the new contract & update constants and builder-example.yaml
ce69202
4 months ago
by Tzal3x
+12%
Fix compiler-version in Move.lock
5ce58db
4 months ago
by Tzal3x
+202%
Use new_range() function
a868d2c
4 months ago
by Tzal3x
-139%
Refactor assertion ERangeEndShouldNotBeZero
982b556
4 months ago
by Tzal3x
+46%
Publish new contract and update constants & builder-example
7b81882
4 months ago
by Tzal3x
-85%
Publish new contract and update wherever
ed3cf40
4 months ago
by Tzal3x
Home Terms PrivacyDocs