Commit 6246b07
[numba.md] numba_ex3: release the 1e8 arrays after the timings
The `u_big`/`v_big` pair added for numba_ex3 stayed alive for the rest of
the notebook. Because `numba_ex_draw_speed` rebinds `u_draws`/`v_draws` to
a second pair of 1e8-element arrays, peak memory reached ~3.2 GB rather
than ~1.6 GB. That is comfortable on the g4dn.2xlarge CI runner but not on
the smaller machines the accompanying memory note is written for.
Delete the arrays after their last use, and fix "Lets" -> "Let's" plus the
trailing whitespace introduced alongside it.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent b9b9c87 commit 6246b07
1 file changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
723 | 723 | | |
724 | 724 | | |
725 | 725 | | |
726 | | - | |
727 | | - | |
| 726 | + | |
| 727 | + | |
728 | 728 | | |
729 | | - | |
| 729 | + | |
730 | 730 | | |
731 | 731 | | |
732 | 732 | | |
| |||
769 | 769 | | |
770 | 770 | | |
771 | 771 | | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
772 | 779 | | |
773 | 780 | | |
774 | 781 | | |
| |||
0 commit comments