microsoft / FluidFramework

Library for building distributed, real-time collaborative web applications
https://fluidframework.com
MIT License
4.7k stars 530 forks source link

add encoding of identifiers in UniformChunk #22327

Closed daesunp closed 1 week ago

daesunp commented 2 weeks ago

Description

This PR allows encoding identifiers into its compressed form in UniformChunks. The current implementation would also compress strings which also happens to be compressible ids, but this should not be an issue, as it is just the in-memory representation, and a check is made to make sure the values are decompressed before returning.

A follow-up PR will be made to allow a path to opt-in to this encoding.

msfluid-bot commented 2 weeks ago
@fluid-example/bundle-size-tests: +1.2 KB
Metric NameBaseline SizeCompare SizeSize Diff
aqueduct.js 459.92 KB 459.95 KB +35 Bytes
azureClient.js 557.96 KB 558.01 KB +49 Bytes
connectionState.js 680 Bytes 680 Bytes No change
containerRuntime.js 260.75 KB 260.76 KB +14 Bytes
fluidFramework.js 399.28 KB 399.77 KB +507 Bytes
loader.js 134.26 KB 134.28 KB +14 Bytes
map.js 42.39 KB 42.39 KB +7 Bytes
matrix.js 146.56 KB 146.56 KB +7 Bytes
odspClient.js 525.23 KB 525.28 KB +49 Bytes
odspDriver.js 97.72 KB 97.74 KB +21 Bytes
odspPrefetchSnapshot.js 42.78 KB 42.79 KB +14 Bytes
sharedString.js 163.26 KB 163.26 KB +7 Bytes
sharedTree.js 389.79 KB 390.28 KB +500 Bytes
Total Size 3.29 MB 3.29 MB +1.2 KB

Baseline commit: b2deac22aff960b57299ab44be1356b1928492eb

Generated by :no_entry_sign: dangerJS against 9824008259a3f5f6ea625b67266eaf9aa7c948b6