---
title: "Discussion on \"To Dict Or Not To Dict: Comparing Data Structure Sizes\" | Hashnode"
description: "Discussion on \"To Dict Or Not To Dict: Comparing Data Structure Sizes\". Searching for the best data structure for your problem can be a tricky business. The chosen data structure should be easy to understand for other developers, run fast in the algorithms where it's used and be memory efficient. You can't always optimiz..."
url: "https://hashnode.com/posts/to-dict-or-not-to-dict-comparing-data-structure-sizes/66582ef867391d40722baf95"
---

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

Discussion

# [To Dict Or Not To Dict: Comparing Data Structure Sizes](https://scientificcoder.com/to-dict-or-not-to-dict-comparing-data-structure-sizes?utm_source=hashnode&utm_medium=feed)

Searching for the best data structure for your problem can be a tricky business. The chosen data structure should be easy to understand for other developers, run fast in the algorithms where it's used and be memory efficient. You can't always optimiz...

May 30, 2024 · 5 min read · scientificcoder.com  
Read the article

-   [#julia](https://hashnode.com/tag/julia)
-   [#data-structures](https://hashnode.com/tag/data-structures)

## Written by

[Matthijs Cox](https://hashnode.com/@matthijscox)

@matthijscox · The Netherlands

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

Scientific Software Engineer

A scientific software developer with over a decade of experience in academia, startups and industry. My mission is to turn you into an elite numerical computing professional.

## Responses 4

Markdown supported · ⌘↵ to post

[Abhay Pansuriya](https://hashnode.com/@mrPansuriya)

[Jun 28, 2024](https://hashnode.com/posts/to-dict-or-not-to-dict-comparing-data-structure-sizes/66582ef867391d40722baf95/comment/667e581915669b6b6bf529a8)

Hi there

[Anthony Lucas](https://hashnode.com/@Bett12323)

[Jun 24, 2024](https://hashnode.com/posts/to-dict-or-not-to-dict-comparing-data-structure-sizes/66582ef867391d40722baf95/comment/667993140fed08587839172e)

Coin Recovery Specialists IS THE BEST BITCOIN AND CRYPTO RECOVERY COMPANY.

It was such a huge relief when I was able to recover our cryptocurrency funds with the help of Coin Recovery Specialists , my husband and I had invested in a fake crypto investment platform that cost us $137,000 a few months back. I came to know about Coin Recovery Specialists through the help of my colleague at work who had benefited from the service of Coin Recovery Specialists . I’m truly grateful there is such a wonderful team who is out there helping cryptocurrency scam victims to recover their money. If you are ever in need of their services, you can easily reach them via Email: E-mail: ( CoinRecoverySpecialists @ Gmail . Com ) Or WhatsApp ( +447442036436 )

Truly amazing service!

[RP777](https://hashnode.com/@RP777)

[Jun 1, 2024](https://hashnode.com/posts/to-dict-or-not-to-dict-comparing-data-structure-sizes/66582ef867391d40722baf95/comment/665b0eda6595e74b610ee87d)

RP777 offers various products: Slots, Fishing, Sabong, Live Casino, Sports, Lottery. Fast deposits and withdrawals via Gcash, Paymaya, USDT, Grabpay, Payloro, and Online Banking. We make your dream come true! Phone : 63 9081232888 Add : 721 Sto Rosario, Mandaluyong, 1552 Kalakhang Maynila

[Richard Careaga](https://hashnode.com/@paradigm)

[May 30, 2024](https://hashnode.com/posts/to-dict-or-not-to-dict-comparing-data-structure-sizes/66582ef867391d40722baf95/comment/665834d1da7e8a742cd7dc3a)

Great walkthrough on custom data structures. I have a different take on criteria.

Efficiency should always be subservient to effectiveness. Effectiveness is doing the right thing, and in the context of coding an analytic solution that means optimization for the least efficient component, which is always wetware.

Brian Kernighan nails the two key points

1.  If optimization has become a concern, suspect a poor choice of algorithm. (See also Donald Knuth’s cautions against premature optimization.)
2.  Everyone knows that it is twice as hard to debug as it is to code, so if you code as cleverly as you are capable, you will never be able to debug your code.

[Matthijs Cox](https://hashnode.com/@matthijscox)

[May 30, 2024](https://hashnode.com/posts/to-dict-or-not-to-dict-comparing-data-structure-sizes/66582ef867391d40722baf95/comment/665834d1da7e8a742cd7dc3a#reply-665858e5ea21ec407839d39a)

Would you say there's a difference in the effectiveness of the structures I compare? They all seem rather easy to use and understand to me.

[Richard Careaga](https://hashnode.com/@paradigm)

[May 30, 2024](https://hashnode.com/posts/to-dict-or-not-to-dict-comparing-data-structure-sizes/66582ef867391d40722baf95/comment/665834d1da7e8a742cd7dc3a#reply-66586708672a85cdecf705a6)

[Matthijs Cox](https://hashnode.com/@matthijscox) Sorry. I learned a lot from your code and my comments are directly to the general question of the tradeoffs that can arise from trying to program to throughput goals. No criticisms at all of your approach.

[Sandy Mildred](https://hashnode.com/@sandymildred221)

[Jun 13, 2024](https://hashnode.com/posts/to-dict-or-not-to-dict-comparing-data-structure-sizes/66582ef867391d40722baf95/comment/665834d1da7e8a742cd7dc3a#reply-666a8939ecf2494dcb17062d)

CONSULT A LICENSE PATECH RECOVERY HACKER FOR CRYPTO RECOVERY I would like to express my gratitude to PATECH RECOVERY HACKER for helping me through a difficult period. I was duped into making an online investment in which I was promised a 25% weekly profit, but it turned out to be a scam. I was very angry until I read an article about PATECH Recovery about how they had assisted others in recovering funds. But because Patech Recovery helped me and made things simple for me, I was able to get my cryptocurrency back. If you've been a victim of something similar, get in touch with them Email: patechrecovery @ proton dot me whatsapp---913////730///0531

Show less
