So what would be the size of an India.
You can just let's make it a different topic out here memory consumed by
an M.D..
Right.
So if I make the size markdown and say memory consume man in the day and of course I'm going to write
down here that what is going to be decisive first of all the Indiani is there in my and B list if you
remember and B list right.
So that you can just print out for now you can just sprint.
Now a number by Airey does not consist of references to objects they directly consist of values it sets
these values 24:12 57 are the values in the end the list itself and B list does not contain references
to objects.
So what you see is size of any list.
That is the actual size that is the actual memory that has no other memory being consumed rather than
the size of list directly.
So if I would just get the size of the list so let's say size of NUMP by Attie size by me and I would
say that's equal to that's equal to I can say I'll tell I would put it up as size.
I will use though function size.
And then I would say I would pause at the end just right.
So now if I print the size of NPR-A How much would one see to it.
Can you see just the three elements.
What is the size of it.
What is the size of a list.
And what is the size of it and we are just three elements.
You can you can you can understand how huge.
How huge memory is being consumed by a list whereas in NBA idea or number three the memory consumed
this very less.
Now if I keep increasing the number of elements in the list let me just keep changing the number of
elements.
Now this is the number of elements right.
Where is it.
Let's say this is 24 12:57.
Is that this is a list.
Let me just copy it up.
Let me bring it up here in.
OK.
Just before print list let me just put it up here.
Now instead of saying 57 let me just add a few more elements right.
Right.
And if I add a few elements and check it up let me just.
So size of list is 152 empty list is this much.
Let me bring it up.
Size of list of 0 size of each element total size for 60.
Let's do a memory consumed by an NPR-A and wait I have two.
I haven't created the NPR-A.
So the NPR is empty list will be created from the list I need to created from the list so I'm going
to say N.P. dot dot at a right and I need to pass the list so that I get that up.
And now I print the size of an interior just to have a look at the size of the Z who what this one for
me in comparison to 460.
That's you trade for 60 is the huge size for a list.
So you can just imagine how much memory is being consumed by list hands.
And numpad is is much more efficient with respect to the memory when it comes when it comes to memory
consumption.
Of course there are a few more things that we're going to have a look at.
And we're going to see is it just the memory or is there something else more which is quite compelling
for an umpire.
And that's we can just mention it out here.
Nick recolored as when I say memory consumed by an NPR-A after memory I can just I can just say the
next thing that we need to check up.
OK.
Or of course memory was one of the points.
And as I told you the first thing was you can that you can operate in the Narey as a whole.
But another point that you need to understand is the time comparison.
Let's compare the time between between Vitalists and the slips and Pyrates.
So let's have a look at that.
So what is the time comparison between piked English and nobody is.
And if you will if you will dig deeper into it.
All right so what are the main advantages or what does that mean.
You know what is the great difference between both of them.
You can just understand them.
And that's the one which is basically with respect to time.
If you have a look I would rather say I'm going to import.
Let me say time and that's the model that I'm going to use for figuring out.
You know though let's let's make a time comparison between Python list and NPR is right.
So I'm going to say part time and after Singapore time I'm going to say what is all I'm doing to create
function.
Let me call a function for the pipe didn't wish office.
So Khaitan version of list to calculate the time.
So I'm going to I'm going to create a calculator timed for the pilot in question awfullest That's one
function that I have let me create another function.
Let me call it calculate time for NUMP whitewash and let me go deeper into both of them.
And let's have a look.
OK.
Now this is in the time zone there is 0 function call.
There is a method.
There's a function.
Goldstein can you see this time function is the return to the current time the current time after the
current time of the program or the program after it gets started running.
Does raccoon's do the current time the current name all.
You know after I started running.
So what is that particular type.
You can understand how we can do this.
Right.
So we can have let's say the current time time but time is T-1 and I'm going to say so if that is the
current time.
And let me just define two lists to list each of size 100.
Let me call it as you know a list can be just defined by seeing range of you know range of how much
of a size you want let's say 100 or 1000 that's up to you let's say thousand.
And why.
Let me call it as a list of another thousand elements and I'm going to make a calculation such that
I wanted to be equal to you know experts why.
So basically I one for every for every element in range in range.
Lennox.