---
title: "Discussion on \"Make your Go code efficient using make() when creating slices\" | Hashnode"
description: "Discussion on \"Make your Go code efficient using make() when creating slices\". Go code improve performance slice array benchmark efficiency make() speed measure lenght capacity Golang Go  programming make Vs Var blog faster"
url: "https://hashnode.com/posts/make-your-go-code-efficient-using-make-when-creating-slices/64584f7d2e518478cbe7daec"
---

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

Discussion

# [Make your Go code efficient using make() when creating slices](https://sampath04.hashnode.dev/make-your-go-code-efficient-using-make-when-creating-slices?utm_source=hashnode&utm_medium=feed)

Go code improve performance slice array benchmark efficiency make() speed measure lenght capacity Golang Go programming make Vs Var blog faster

May 8, 2023 · 4 min read · sampath04.hashnode.dev  
Updated May 29, 2023  
Read the article

-   [#go](https://hashnode.com/tag/go)
-   [#array-slice-in-go](https://hashnode.com/tag/array-slice-in-go)
-   [#code-efficiency](https://hashnode.com/tag/code-efficiency)
-   [#benchmark-go](https://hashnode.com/tag/benchmark-go)
-   [#append-in-go](https://hashnode.com/tag/append-in-go)

## Written by

[Sampathkumar Subramaniam](https://hashnode.com/@sampath4)

@sampath4 · Germany

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

SAP - Technical Delivery & Service Lead

Results-driven Technical Delivery &amp; Service Lead with over 17 years of experience at SAP, specializing in CI/CD pipelines, DevOps automation, cloud transformation, and full lifecycle delivery of Fiori applications across public and private cloud environments. Proven success in leading cross-functional teams (up to 11+ FTEs), and enhancing developer productivity through intelligent automation. Passionate about mentoring, coaching, and creating a safe, growth-oriented environment. Certification: Google Cloud Certified Cloud Digital Leader Google Project Management Professional Google IT Automation using Python

## Responses 3

Markdown supported · ⌘↵ to post

[Zen](https://hashnode.com/@ZenSen)

[May 18, 2023](https://hashnode.com/posts/make-your-go-code-efficient-using-make-when-creating-slices/64584f7d2e518478cbe7daec/comment/6465e271eb43c7e4ebcfe570)

Good one, nice short and snappy read ! Keep adding more. Good to know about benchmark api's.

[Arij Hussain Syed](https://hashnode.com/@ArijHussain)

[May 9, 2023](https://hashnode.com/posts/make-your-go-code-efficient-using-make-when-creating-slices/64584f7d2e518478cbe7daec/comment/645ab949aa4805507413f043)

Nice explanation. Learnt something new. :)

[Ashwath M](https://hashnode.com/@ashwath)

[May 9, 2023](https://hashnode.com/posts/make-your-go-code-efficient-using-make-when-creating-slices/64584f7d2e518478cbe7daec/comment/645ab5959197834c2edbf69c)

Nice read. Explained in detail.
