<!-- .slide: data-background="https://substrate.dev/img/bg-dark-1.png" -->
# Off of the shaky grounds
the path towards stabilizing Substrate
<!-- Put the link to this slide here so people can follow -->
slide: https://hackmd.io/@gnunicorn/off-shaky-grounds#/
---
### What we will cover
- Challenges
- Solutions
- Metering, Measuring & Profiling
- Freezes, `cargo unleash` & contionous releasing
- Benchmarking & Testing
---
# Challenges
The problems we faced prior to releasing Substrate/Polkadot
---
## Hard Performance
- 🕳️ leaking memory <!-- .element: class="fragment" data-fragment-index="1" -->
- 🥵 CPU spikes <!-- .element: class="fragment" data-fragment-index="2" -->
- 👋 dropping peers <!-- .element: class="fragment" data-fragment-index="3" -->
- 😱 stalling consensus <!-- .element: class="fragment" data-fragment-index="4" -->
- 💸 bad weights <!-- .element: class="fragment" data-fragment-index="5" -->
---
## Process
- massive mono-repo with plenty of `path = ../` and circle-dev-dependencies, how even?
- a tale of two repos: polkadot and substrate being out of sync
- `master`-branch being broken because of merge-order
- `unittest` cover too little – all tests pass, yet the node is failing
- big refactors lead to instability for months
---
# 🔧 fixing it
---
# Hard Performance – leaks & spikes
measure, measure, measure!
---
## MOAR Telemetry


---
### Thank you! :sheep:
You can find me on
- GitHub
- Twitter
- or email me
{"metaMigratedAt":"2023-06-15T09:22:34.618Z","metaMigratedFrom":"YAML","title":"Off of the shaky grounds – the path towards stabilizing Substrate","breaks":true,"slideOptions":"{\"theme\":\"black\"}","contributors":"[{\"id\":\"7c6aab33-6425-4708-b066-3fd2f68e020f\",\"add\":2000,\"del\":2688}]"}