Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

io-bound-data-processing

БесплатноБез исполняемых скриптовНе проверен

Processing, transforming, or moving datasets that may exceed RAM on a single low-compute box — covers memory discipline (streaming, generators, dtype…

pproencaот pproenca★ 231 звезда на GitHub

Об этом скилле

Community I/O-bound data processing on constrained resources Best Practices

A reference for engineers processing datasets larger than RAM on a single low-compute box. Organized by execution-lifecycle impact: rules near the top of the table govern whether the job runs at all; rules near the bottom shave the last 10 %. Optimize from the top of the waterfall.

Scope: the patterns that show up in real ETL / data-engineering / batch work on a laptop, a 2-vCPU container, or a Raspberry Pi-class node — streaming, formats, chunking, spill, backpressure, codecs, and the concurrency model that actually matches an I/O-bound bottleneck. Out of scope (covered elsewhere): the algorithmic primitives themselves (see computer-science-algorithms), distributed compute beyond a single box (use Spark/Dask), and database-engine internals (see official docs).

Distilled from Apache Arrow / Parquet docs, Polars User Guide, DuckDB docs, pandas — Scaling to large datasets, Linux man pages (mmap(2), sendfile(2), posix_fadvise(2)), Brendan Gregg's USE method and Systems Performance, Kleppmann's Designing Data-Intensive Applications, and the zstd / lz4 reference benchmarks.

When to Apply

Reach for these rules when:

  • A job OOM-kills, swaps, or runs much slower than expected on a small box
  • Input is larger than RAM and you need to scan, filter, aggregate, sort, or join it
  • A pipeline has unbounded buffers between stages, or memory grows linearly during a "streaming" job
  • You see one-row-per-RTT writes (INSERT per row, requests.get per URL, f.read(32) per record)
  • You're picking a format/codec/serializer and the choice matters at scale
  • A top shows low CPU and high iowait, or you don't know which it is
  • "It's slow but I don't know why" — start at the obs- category

Rule Categories By Priority

# Category Prefix Impact Why it cascades
1 Memory Discipline mem- CRITICAL Slurping into RAM defeats every downstream technique on a constrained box
2 I/O Access Patterns io- CRITICAL Disk/net are 10³–10⁶× slower than RAM; access pattern dominates wall-clock
3 Data Format & Encoding fmt- HIGH Format fixes the lower bound on I/O volume + decode cost before any logic runs
4 Chunking & Batching batch- HIGH Granularity controls peak memory and amortizes per-item overhead
5 Spill-to-Disk & External Memory spill- HIGH When data > RAM, the choice is "spill cleanly" or "OOM"
6 Pipelining & Backpressure pipe- MEDIUM-HIGH Unbounded buffers between fast producers and slow sinks = OOM
7 Compression & Serialization codec- MEDIUM Trades CPU for I/O; right codec saves orders of magnitude
8 Concurrency for I/O-Bound Workloads conc- MEDIUM Async / threads / processes are different tools; wrong model wastes CPU
9 Observability & Throughput Tuning obs- LOW-MEDIUM Can't tune what you don't measure; iowait ≠ CPU-bound

Quick Reference

1. Memory Discipline (CRITICAL)

2. I/O Access Patterns (CRITICAL)

Полный SKILL.md на GitHub

Установить io-bound-data-processing в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

AGENTS.mdassets/templates/_template.mdmetadata.jsonreferences/_sections.mdreferences/batch-coalesce-writes-with-buffered-output.mdreferences/batch-keyset-pagination-over-offset.mdreferences/batch-pick-chunk-size-by-memory-budget.mdreferences/batch-process-with-stable-iterators.mdreferences/batch-use-vectorized-apis-not-row-loops.mdreferences/codec-dictionary-encoding-for-repetitive-strings.mdreferences/codec-prefer-binary-protocols-over-json-for-rpc.mdreferences/codec-train-a-zstd-dictionary-for-many-small-payloads.mdreferences/codec-zstd-or-lz4-as-defaults-not-gzip.mdreferences/conc-asyncio-for-many-network-streams-not-for-cpu.mdreferences/conc-overlap-compute-with-prefetch.mdreferences/conc-thread-pools-for-blocking-io-libraries.mdreferences/conc-tune-parallelism-to-the-bottleneck.mdreferences/fmt-avoid-deeply-nested-json-for-hot-paths.mdreferences/fmt-columnar-for-analytical-scans.mdreferences/fmt-line-delimited-for-streaming-row-ingest.mdreferences/fmt-prefer-schema-on-write-when-possible.mdreferences/fmt-push-predicates-into-the-reader.mdreferences/io-async-for-many-concurrent-streams.mdreferences/io-batch-and-pipeline-network-roundtrips.mdreferences/io-buffer-explicitly-for-small-records.mdreferences/io-mmap-for-random-or-shared-large-files.mdreferences/io-prefer-sequential-over-random.mdreferences/io-stream-http-bodies-with-iter-content.mdreferences/io-zero-copy-when-moving-bytes-as-is.mdreferences/mem-bound-the-working-set.mdreferences/mem-prefer-generators-over-lists-for-pipelines.mdreferences/mem-release-references-explicitly.mdreferences/mem-shrink-dtypes-before-loading.mdreferences/mem-stream-dont-slurp.mdreferences/mem-use-views-not-copies.mdreferences/obs-instrument-throughput-rows-per-second.mdreferences/obs-measure-iowait-not-just-cpu.mdreferences/obs-profile-with-py-spy-or-strace-for-syscall-storms.mdreferences/pipe-apply-backpressure-from-slow-stages.mdreferences/pipe-checkpoint-progress-for-resumability.md

FAQ

Что делает скилл io-bound-data-processing?

Processing, transforming, or moving datasets that may exceed RAM on a single low-compute box — covers memory discipline (streaming, generators, dtype shrinkage), I/O access patterns (sequential vs random, mmap, async), data formats (Parquet vs CSV vs JSON, predicate pushdown), chunking & batching, spill-to-disk (external merge sort, DuckDB/Polars), pipelining (bounded queues, backpressure, checkpointing), codec selection (zstd/lz4/gzip), concurrency for I/O-bound workloads (asyncio, threads, prefetch), and observability (iowait vs CPU%, rows/sec, py-spy/strace). Trigger on "process a large file", "stream this", "out-of-core", "OOM kill", "this is slow", or code with `pd.read_csv` of multi-GB files, `requests.get(...).content` on big bodies, `BytesIO` on unbounded inputs, per-row INSERTs, sequential `requests.get` loops, falling `tqdm` rates — even if I/O or memory isn't mentioned. Complement to computer-science-algorithms.

Как установить скилл io-bound-data-processing?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл io-bound-data-processing запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить io-bound-data-processing с