generated from jupyterlite/demo
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update slides and requirements.txt file
- Loading branch information
Showing
10 changed files
with
108 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
@profile | ||
def add_string_with_join(iters): | ||
l = [] | ||
for i in range(iters): | ||
l.append("abc") | ||
s = "".join(l) | ||
assert len(s) == 3 * iters | ||
|
||
|
||
add_string_with_join(50000) | ||
assert len(s) == 3*iters | ||
|
||
add_string_with_join(500000) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
@profile | ||
def add_string_with_plus(iters): | ||
s = "" | ||
for i in range(iters): | ||
s += "abc" | ||
assert len(s) == 3 * iters | ||
|
||
|
||
add_string_with_plus(50000) | ||
assert len(s) == 3*iters | ||
|
||
add_string_with_plus(500000) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
@profile | ||
def my_func(): | ||
a = [1] * (10**6) | ||
b = [2] * (2 * 10**7) | ||
a = [1] * (10 ** 6) | ||
b = [2] * (2 * 10 ** 7) | ||
del b | ||
return a | ||
|
||
|
||
my_func() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
|
||
val8 = "global scope" | ||
|
||
breakpoint() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,3 +53,8 @@ tabulate | |
|
||
# Black | ||
black[jupyter] | ||
|
||
# Perf tools | ||
pympler | ||
scalene | ||
memory-profiler |