Head of Security @ASIMOV_Protocol & @HaltiaAI. Formerly Rainbow Bridge Tech Lead at @NEARProtocol & @AuroraIsNEAR. [email protected]
1 Followers
Part 2: ๐ NEAR Gas: When More Code Means Lower Costs To make this even more accessible to developers, I propose we explore integrating compression directly into near-sdk. Imagine a `#[serializer(borsh-lz4)]` attribute! This would streamline development and encourage wider adoption of this optimization ๐ ๏ธ.
@septen ๐ NEAR Gas: When More Code Means Lower Costs ๐คฏ โ Recently I discovered a powerful technique to potentially slash gas costs on @NEARProtocol smart contracts. Meaning, that you actually can have a negative gas overhead by having extra code. It involves leveraging compression libraries directly within contract function calls. Let's dive into the details! ๐งต
Hello, Warpcast.
Think about it: smaller data payloads mean less gas burned during transmission and storage on-chain (if you store compressible data). My experiments with LZ4 compression have shown promising results. We're talking about real-world savings, particularly for contracts dealing with substantial data inputs. ๐ฐ