Skip to content

Commit 680806d

Browse files
Merge pull request #155 from Niraj-apr4/fix-typo-issue#154
Fix typo in optimizing.jmd
2 parents ff0eb96 + 6a2ae98 commit 680806d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_weave/lecture02/optimizing.jmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,9 +440,9 @@ the values and ask it for its types, and use those types to know how to compute
440440
the + function. For this reason, the add function in Python is rather complex
441441
since it needs to decode and have a version for all primitive types!
442442

443-
Not only is there runtime overhead checks in function calls due to to not being
443+
Not only is there runtime overhead checks in function calls due to not being
444444
explicit about types, there is also a memory overhead since it is impossible
445-
to know how much memory a value with take since that's a property of its type.
445+
to know how much memory a value will take since that's a property of its type.
446446
Thus the Python interpreter cannot statically guarantee exact unchanging values
447447
for the size that a value would take in the stack, meaning that the variables
448448
are not stack-allocated. This means that every number ends up heap-allocated,

0 commit comments

Comments
 (0)