Plate 57
Topic
performance
19 posts
Plate 82
shlex.split vs str.split: Localhost Lab
Plate 34
ast.literal_eval vs json.loads: Localhost Lab
Plate 64
selectors vs select.select: Localhost Lab
Plate 59
enum.IntEnum vs int Status Codes: Localhost Lab
Plate 90
Path.read_text vs open().read: Localhost Lab
Plate 68
gc.collect Cost Empty vs Cycles: Localhost Lab
Hands-on gc.collect cost empty vs cyclic garbage lab: real collect latency plus reclaim counts, measured on Linux localhost today in this lab for SREs.
Plate 28
sqlite3 vs shelve Local KV: Localhost Lab
Hands-on sqlite3 vs shelve local KV store lab: real insert/get ops/s plus file sizes, measured on Linux localhost today in this hands-on lab for SREs.
Plate 76
html.parser vs regex Tag Strip: Localhost Lab
Plate 43
copy.copy vs dict.copy Shallow: Localhost Lab
Plate 85
math.fsum vs sum Float Totals: Localhost Lab
Hands-on math.fsum vs builtin sum for float totals: real items/s plus cancellation accuracy, measured on Linux localhost in this hands-on lab for SREs.
Plate 77
fractions.Fraction vs float: Localhost Lab
Hands-on fractions.Fraction vs float for exact ratios: real ops/s and exactness checks, measured on Linux localhost today in this hands-on lab for SREs.
Plate 16
ExitStack vs Nested with Resources: Localhost Lab
Hands-on contextlib.ExitStack vs nested with and manual close: real cycles/s for N resources, measured on Linux localhost in this hands-on lab for SREs.
Plate 40
itertools.batched vs Manual Chunking: Localhost Lab
Hands-on itertools.batched vs manual list-slice chunking: real items/s batching sequences, measured on Linux localhost today in this hands-on lab for SREs.
Plate 35
ipaddress vs String Prefix Allowlist: Localhost Lab
Hands-on ipaddress CIDR containment vs naive string prefix allowlists: real checks/s, measured on Linux localhost today in this hands-on lab for SREs.
Plate 12
ChainMap vs Merged Dict Lookup: Localhost Lab
Hands-on collections.ChainMap vs merged dict config lookup: real ops/s on layered keys, measured on Linux localhost today in this hands-on lab for SREs.
Plate 29
functools.cache vs lru_cache(None): Localhost Lab
Plate 94
graphlib Topo vs Manual Kahn: Localhost Lab
Plate 96