דילוג לתוכן
New

DeepSeek V4.1 Flash free for 7 days: 10M tokens a day after a top-up of $10 or more. Until Nov 30.

How it works
aeondave/python-performanceAPIs, SaaS וזהות

python-performance

⁨Python performance workflow: measure with profilers, then cut allocations, pick the right parallelism (threads vs processes vs subinterpreters vs free-threading), and only then touch experimental JIT/runtime knobs. Use after you have evidence CPython is the bottleneck — not for style or API design.⁩

v2026.11.13-21cd5683 התקנות⁦+3⁩ ב-7 ימים39 כוכביםMITסונכרן לפני 10 שעות

התקנה

עדיין אין לכם את ה-CLI של NotHoly? התקינו אותו קודם.

$ curl -fsSL https://notholy.com/install.sh | sh
$ notholy skills install aeondave/python-performance

נכתב אל ⁦~/.notholy/skills⁩ אחרי בדיקת החתימה וה-SHA-256.

חתימהחתום, ed25519
+94adXKx0s…6whmL2Dg==ה-CLI בודק את ה-SHA-256 ואת החתימה לפני שהוא כותב קובץ כלשהו.
חבילה0349906c…bcfbcfce
0349906c4c11…0655bcfbcfce5 קבצים · ⁦6.4 KB⁩
סריקהנמוךממצא אחד
  • קישורים לדומיינים חיצוניים
לסריקה המלאה
מקורgithub.com/AeonDave/malskill/tree/main/coding/python-performance@21cd568

הפריט הזה עדיין לא נכתב בעברית, ולכן הוא מוצג בשפה אחרת: English.

This skill is measurement-first optimization in CPython.

If the task is idioms, typing, or packaging, use python-patterns. If it is asyncio orchestration, use python-async-patterns. Primitive choice (which executor, queue shutdown, start method) lives in python-patterns concurrency.md; this skill is cost, GIL, and measurement.

When to activate

  • Confirming a latency, throughput, CPU, or memory regression in Python
  • Deciding whether threads, processes, subinterpreters, or a free-threaded build will actually parallelize
  • Profiling a hot path before and after a change
  • Evaluating experimental JIT or other runtime knobs

Rules of engagement

  • Profile before changing code. Algorithm and I/O dominate micro-tweaks.
  • Change one variable at a time. Keep a before/after number.
  • Optimize the proven hot path, not code that merely looks slow.
  • Do not treat free-threading or the JIT as default. Both are opt-in; JIT is experimental.

Outcome expectations

  • Claims have a reproducible before/after measurement.
  • Parallelism choice matches GIL state (sysconfig.get_config_var("Py_GIL_DISABLED") vs sys._is_gil_enabled()).
  • Experimental flags stay labeled experimental.

Workflow

  1. Make the symptom measurable (timeit, a benchmark script, or a representative load).
  2. Capture evidence: CPU (cProfile / py-spy), allocations (tracemalloc).
  3. Classify: algorithm, I/O wait, GIL serialization, allocation churn, or lock contention.
  4. Apply one targeted fix. Re-measure.
  5. Only then consider runtime builds (free-threaded) or experimental JIT.

Symptom to first tool

  • High CPU in Python frames -> cProfile or py-spy record
  • Many cores idle on threaded CPU work -> GIL / parallelism (gil-and-parallelism.md)
  • RSS growth or allocation churn -> tracemalloc, then allocations-gc.md
  • Event-loop stalls -> python-async-patterns (don't block the loop); profile with py-spy
  • Shipped binary already profile-tuned -> compiler-and-runtime.md

Resources

Load on demand:

  • references/profiling.md — load when choosing cProfile, py-spy, scalene, or tracemalloc
  • references/gil-and-parallelism.md — load for GIL, free-threading (3.13 experimental / 3.14 supported optional), InterpreterPoolExecutor, multiprocessing vs threads
  • references/allocations-gc.md — load for allocation churn, gc, slots, caches
  • references/compiler-and-runtime.md — load for experimental JIT (PYTHON_JIT), tail-call interpreter, PGO; not for first-pass code fixes

הקבצים בגרסה הזו

הרשאות

הרשאההוצהרנמצא בסריקה
קורא קבציםלאלא
כותב קבציםכןכן
מריץ פקודות shellכןכן
משתמש ברשתכןכן
משתמש במחבריםלאלא
שולט בדפדפןלאלא

ממצאי הסריקה

נבדק ב-13 בנוב׳ 2026

  1. מידעקישור · קישורים לדומיינים חיצוניים

סריקה נקייה מורידה את הסיכון, אבל לא מוכיחה שהחבילה בטוחה. כדאי לקרוא מה מתקינים.

גרסהפורסמהCommitSHA-256חתימהשינוי בהרשאות
v2026.11.13-21cd56813 בנוב׳ 202621cd5680349906cחתומה–

שאלו כל מה שהסקופ מאפשר.

יוצרים חשבון, מוסיפים קרדיטים ושואלים את השאלה הראשונה בצ׳אט או בטרמינל.

  1. 1/3

    יצירת חשבון

    פרטי או חברה. אפשר לעבור לחשבון חברה אחר כך בלי לאבד יתרה או מפתחות.

    פרטיחברה
  2. 2/3

    הוספת קרדיטים

    בכרטיס אשראי. תשלום לפי טוקן, בלי מנוי.

    $5.00טעינה מינימלית
  3. 3/3

    שאלה ראשונה

    בצ׳אט, או להתקין את ה-CLI ולהריץ notholy login בטרמינל.

    $ notholy login