From 13667d9bb5b4e50d600424b6f669b326b851339e Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Sat, 11 Jan 2025 18:11:29 +0000 Subject: [PATCH] site deploy Auto-generated via `{sandpaper}` Source : ec913c328736101e387744941b467e9713c94ab2 Branch : md-outputs Author : GitHub Actions Time : 2025-01-11 18:11:11 +0000 Message : markdown source builds Auto-generated via `{sandpaper}` Source : fb5a6c9ef081f21f43b3f3a50eb1a914a34bfa27 Branch : main Author : Robadob Time : 2024-10-22 05:44:24 +0000 Message : [actions] update sandpaper workflow to version 0.16.9 --- aio.html | 18 ++++++------- instructor/aio.html | 26 +++++++++---------- ...timisation-data-structures-algorithms.html | 8 +++--- instructor/optimisation-introduction.html | 2 +- instructor/profiling-introduction.html | 4 +-- instructor/profiling-lines.html | 12 ++++----- md5sum.txt | 2 +- optimisation-data-structures-algorithms.html | 6 ++--- pkgdown.yml | 2 +- profiling-introduction.html | 2 +- profiling-lines.html | 10 +++---- 11 files changed, 46 insertions(+), 46 deletions(-) diff --git a/aio.html b/aio.html index 6c92a9a..8d634a2 100644 --- a/aio.html +++ b/aio.html @@ -755,7 +755,7 @@

Exercise (5 minutes)

-
+
  • What tools and techniques would be required?
  • @@ -1550,7 +1550,7 @@

    SH< -
    +

    If you are unable to install line_profiler via pip on MacOS. Instead it can be installed via @@ -1913,7 +1913,7 @@

    Exercise 1: BubbleSort

    -
    +
    • Remember that the code needs to be moved into a method decorated @@ -1933,7 +1933,7 @@

      Give me a hint

      -
      +

      If you chose to profile the whole code, it may look like this:

      @@ -2053,7 +2053,7 @@

      Exercise 2: Predator Prey

      -
      +
      • Remember that the function needs to be decorated with @@ -2075,7 +2075,7 @@

        Give me a hint

        -
        +

        First the function must be decorated

        @@ -2567,7 +2567,7 @@

        This episode is challenging!

        it doesn’t, it will re-allocate a larger array, copy across the elements, and deallocate the old array. The item to be appended is then copied to the end and the counter which tracks the list’s length is -incremnted.

        +increemnted.

        The amount the internal array grows by is dependent on the particular list implementation’s growth factor. CPython for example uses newsize + (newsize >> 3) + 6, which works out to an over allocation of roughly ~12.5%.

        @@ -2821,7 +2821,7 @@

        PYTHON