elixir-performance-review
/elixir-performance-review
Przegląda kod Elixir pod kątem problemów wydajności: wąskie gardła GenServer, zużycie pamięci i wzorce współbieżności, przy kodzie o dużej przepustowości.
- Autor
- existential-birds ↗
- Repozytorium
- beagle ↗
- Licencja
- Apache-2.0
- Ostatnia zmiana repozytorium
- 09.08.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 5
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 09.08.2026, bez odwołań do wycofanych modeli i API.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
Co robi i kiedy
Przegląda kod Elixir pod kątem problemów wydajności: wąskie gardła GenServer, zużycie pamięci i wzorce współbieżności, przy kodzie o dużej przepustowości.
Oryginalny opis (EN)
Reviews Elixir code for performance issues including GenServer bottlenecks, memory usage, and concurrency patterns. Use when reviewing high-throughput code or investigating performance issues.
Jak działa
- Quick Reference
- Review Checklist
- Valid Patterns (Do NOT Flag)
- Context-Sensitive Rules
- Gates — before reporting
- Before Submitting Findings
Podgląd SKILL.md
--- name: elixir-performance-review description: Reviews Elixir code for performance issues including GenServer bottlenecks, memory usage, and concurrency patterns. Use when reviewing high-throughput code or investigating performance issues. --- # Elixir Performance Review ## Quick Reference | Issue Type | Reference | |------------|-----------| | Mailbox overflow, blocking calls | [references/genserver-bottlenecks.md](references/genserver-bottlenecks.md) | | When to use ETS, read/write concurrency | [references/ets-patterns.md](references/ets-patterns.md) | | Binary handling, large messages | [references/memory.md](references/memory.md) | | Task patterns, flow control | [references/concurrency.md](references/concurrency.md) | ## Review Checklist ### GenServer - [ ] Not a single-process bottleneck for all requests - [ ] No blocking operations in handle_call/cast - [ ] Proper timeout configuration - [ ] Consider ETS for read-heavy state ### Memory - [ ] Large binaries not copied between processes - [ ] Streams used for large data transformations - [ ] No unbounded data accumulation ### Concurrency - [ ] Task.Supervisor for dynamic tasks (not raw Task.async) - [ ] No unbounded process spawning - [ ] Proper backpressure for message producers ### Database - [ ] Preloading to avoid N+1 queries - [ ] Pagination for large result sets - [ ] Indexes for frequent queries ## Valid Patterns (Do NOT Flag) - **Single GenServer for low-throughput** - Not all state needs horizontal scaling - **Synchronous calls for critical paths** - Consistency may require it - **In-memory state without ETS** - ETS has overhead for small state - **Enum over Stream for small collections** - Stream overhead not worth it ## Context-Sensitive Rules | Issue | Flag ONLY IF | |-------|--------------| | GenServer bottleneck | Handles > 1000 req/sec OR blocking I/O in callbacks | | Use streams | Processing > 10k items OR reading large files | | Use ETS | Read:write ratio > 10:1 AND concurrent access | ## Gates — before reporting Do these **in order** for the performance review. Do not publish findings until each step passes. 1. **Protocol loaded** — Read [review-verification-protocol](../review-verification-protocol/SKILL.md) and apply its checks for each finding (hot paths, concurrency, resource use). **Pass:** For every substantive finding, you can name which protocol subsection you satisfied or state **N/A** with reason (e.g. pure reference to this skill’s Valid Patterns). 2. **Anchored evidence** — **Pass:** Each finding includes a concrete locator: `path:line` (or line range), or `Module.function/arity` plus a short quoted snippet from the file. 3. **Performance claims** — For anything under [Context-Sensitive Rules](#context-sensitive-rules), or any claim of bottleneck, N+1, unbounded growth, or heavy memory/binary cost, **Pass:** You state the **observed or measured** fact that meets “Flag ONLY IF” (e.g. rate, item count, ratio), or attach an artifact (profiler output, SQL/log excerpt, `grep`/search scope)—otherwise downgrade to **question** / **suspected** with what was not verified. ## Before Submitting Findings Complete **Gates — before reporting** (section above) first; the verification protocol is mandatory input to those gates.
Pliki w paczce (5)
- SKILL.md 3 KB
- references/concurrency.md 3 KB
- references/ets-patterns.md 3 KB
- references/genserver-bottlenecks.md 3 KB
- references/memory.md 2 KB
Wersje
W bazie nie ma innych skilli o nazwie elixir-performance-review.
Migawka bazy z 13.11.2026 · wersja paczki da3c0da45c8a (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 90elixir-code-review
Przegląda kod Elixir pod kątem idiomatycznych wzorców, podstaw OTP i dokumentacji, w plikach .ex i .exs: dopasowanie wzorców, GenServer i dokumentacja modułów. - 95elixir-otp-patterns
Opisuje wzorce OTP w Elixirze (GenServer, Supervisor, Agent, Task) do budowy współbieżnych aplikacji odpornych na awarie. - 95elixir-design-genserver
Ocenia, czy proces GenServer w Elixirze jest potrzebny, wykrywa wąskie gardła w kolejce wiadomości i dobiera call lub cast. - 100elixir-otp-concurrency
Buduje odporne na awarie usługi współbieżne w Elixirze z GenServer, supervisorami i przekazywaniem wiadomości. - 100elixir-idioms
Opisuje wzorce OTP i BEAM oraz idiomy Elixira: GenServer, Supervisor, Task, Registry, dopasowanie wzorców i łańcuchy with przy projektowaniu procesów. - 100elixir-idioms
Opisuje wzorce OTP i BEAM oraz idiomy Elixira: GenServer, Supervisor, Task, Registry, dopasowanie wzorców i łańcuchy with przy projektowaniu procesów.