---
title: "Discussion on \"Gas optimization Series Part -2\" | Hashnode"
description: "Discussion on \"Gas optimization Series Part -2\". Today we'll briefly look into caching state variables\n\nIt is always better to cache a state variable if you can. What does caching a state variable even mean? It's a jargon word to scare off people. In essence, it's simply the act of copying state va..."
url: "https://hashnode.com/posts/gas-optimization-series-part-2/64b3b297f96f17ada6c4388c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Gas optimization Series Part -2](https://sakshamthapa.hashnode.dev/gas-optimization-series-part-2?utm_source=hashnode&utm_medium=feed)

Today we'll briefly look into caching state variables It is always better to cache a state variable if you can. What does caching a state variable even mean? It's a jargon word to scare off people. In essence, it's simply the act of copying state va...

Jul 16, 2023 · 2 min read · sakshamthapa.hashnode.dev  
Read the article

-   [#solidity](https://hashnode.com/tag/solidity)
-   [#gas-optimization](https://hashnode.com/tag/gas-optimization)
-   [#advanced-solidity](https://hashnode.com/tag/advanced-solidity)

## Written by

[Saksham Thapa](https://hashnode.com/@sakshamthapa)

@sakshamthapa · Kathmandu, Nepal

  
[View profile](https://hashnode.com/@sakshamthapa)

Blockchain developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
