A Very Fast And Memory Efficient Alternative To Python Lists (Deque)

  Рет қаралды 16,755

Indently

Indently

Күн бұрын

Today, we will be looking at deque, a package that comes with Python that is known for it's memory-efficiency in managing queues and stacks. It also provides us with some extra in-built methods that don't come with list.

Пікірлер: 21
@pastenml
@pastenml Жыл бұрын
Excellent and to the point. Appreciate the guest appearance by the ghost as well :)
@sanskaripatrick7191
@sanskaripatrick7191 6 ай бұрын
Super informative and to the point. Loved it. Keep up the great work!
@Indently
@Indently 6 ай бұрын
Much appreciated!
@elatedbento
@elatedbento 7 ай бұрын
I'm late for the party, but I want to say that this is a great video. Thank you for sharing useful knowledge. Happy 2023 Holidays 😄🎄
@miltondias6617
@miltondias6617 Жыл бұрын
Huge LIKE to this video! Very useful!
@simiiv5021
@simiiv5021 4 ай бұрын
Crisp and on point!
@heeming
@heeming 6 ай бұрын
so useful and clear. thank you from Korea👍
@Indently
@Indently 6 ай бұрын
Glad it was helpful!
@GigasAhriman
@GigasAhriman 6 ай бұрын
I've been following a Python book. So far it's been pretty good, but it did not really explain queues well. Your vid covered it. Thank you
@Indently
@Indently 6 ай бұрын
Glad it was helpful!
@chx75
@chx75 Жыл бұрын
Looks quite useful. The font size is very small. I can still read it from the phone, but it would be much better to have a bigger one.
@anuInbetweener
@anuInbetweener 2 ай бұрын
very informative . i am using it to store live market data for algo
@thejoojoo9999
@thejoojoo9999 Жыл бұрын
great video.
@evanstar3256
@evanstar3256 Жыл бұрын
Me who took data structures: Do not cite the deep magic to me, I was there when it was written
@ImHansana123
@ImHansana123 4 ай бұрын
Can i use dictionaries too?
@Meenimie
@Meenimie 5 ай бұрын
Supporting comment.
@toasterowo2335
@toasterowo2335 Жыл бұрын
So, if this is faster, more efficent, has all the same features and more features... Why exactly does list even exist as a separate and worse way of doing it? Meaning, why was deque added as a separate thing, and not the list extended and optimised with the code that is used for deque?
@ktyu_timmy8025
@ktyu_timmy8025 Жыл бұрын
I found this answer on StackOverflow: "while deque is fast and efficient at inserting and popping at either side of the array, it is rather slow reading/accessing data from the array when comparing to list"
@toasterowo2335
@toasterowo2335 Жыл бұрын
@@ktyu_timmy8025 That sounds weird. Unless the whole structure of those two is different, it would make no sense. So unless they actually are completely different under the hood, its just a massive waste to not combine the two into the optimal thing.
@Zhul123
@Zhul123 5 ай бұрын
ty nerd
@Pen__the_mightiest
@Pen__the_mightiest Ай бұрын
This video seems very misleading. Double ended queues take up twice the memory of a list. They are not “memory efficient” you also refer to them as a stack, a completely different data structure with very different use cases.
3 Ways To Flatten Any List In Python
9:34
Indently
Рет қаралды 5 М.
5 Good Python Habits
17:35
Indently
Рет қаралды 448 М.
KINDNESS ALWAYS COME BACK
00:59
dednahype
Рет қаралды 167 МЛН
50 YouTubers Fight For $1,000,000
41:27
MrBeast
Рет қаралды 190 МЛН
ПРОВЕРИЛ АРБУЗЫ #shorts
00:34
Паша Осадчий
Рет қаралды 6 МЛН
5 Uncommon Python Features I Love
15:09
Indently
Рет қаралды 140 М.
Python dataclasses will save you HOURS, also featuring attrs
8:50
Deques can be FASTER than lists in Python
12:17
Carberra
Рет қаралды 26 М.
The Flaws of Inheritance
10:01
CodeAesthetic
Рет қаралды 915 М.
10 Python Comprehensions You SHOULD Be Using
21:35
Tech With Tim
Рет қаралды 132 М.
The Fastest Way to Loop in Python - An Unfortunate Truth
8:06
mCoding
Рет қаралды 1,4 МЛН
5 Useful F-String Tricks In Python
10:02
Indently
Рет қаралды 282 М.
The Best Data Structure You’ve Never Heard of | Python Deques
3:37
Daniel Boctor
Рет қаралды 1,8 М.
15 Python Libraries You Should Know About
14:54
ArjanCodes
Рет қаралды 375 М.
KINDNESS ALWAYS COME BACK
00:59
dednahype
Рет қаралды 167 МЛН