python-performance-optimization
透過效能剖析最佳化 Python 效能
緩慢的 Python 服務會浪費運算資源並掩蓋瓶頸。此技能會指引效能剖析、基準測試、記憶體調校和精準最佳化。
使用我的智慧代理安裝
將此請求複製給你的智慧代理,其中包含權威 Skill 頁面和清單。
Review the Skillstore skill "python-performance-optimization" from https://skillstore.io/skills/sickn33-python-performance-optimization.md and its manifest at https://skillstore.io/api/skills/sickn33-python-performance-optimization/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智慧代理仍應顯示其計畫,並依安全政策請求必要確認。
Agent 可讀資源
當 AI Agent、爬蟲或腳本需要乾淨脈絡、而不是讀取完整頁面時,請使用這些連結。
測試它
正在使用「python-performance-optimization」。 緩慢的端點會重複執行資料庫寫入,且沒有基準測試結果。
預期結果:
此技能會建議剖析請求路徑、批次寫入、測量查詢計畫,並新增變更前後的延遲基準測試。
正在使用「python-performance-optimization」。 腳本在逐行處理檔案時建立大型 lists。
預期結果:
此技能會建議進行記憶體剖析、使用 iterator-based processing、generator expressions,以及驗證峰值記憶體。
正在使用「python-performance-optimization」。 團隊想要加速許多彼此獨立且 CPU-heavy 的計算。
預期結果:
此技能會比較循序執行、multiprocessing、NumPy 選項、基準測試設計和可讀性取捨。
安全審計
安全All static findings are documentation examples, not executable skill behavior. Network, SQLite, and py-spy snippets are presented as optimization patterns and do not show credential access, exfiltration, or prompt injection.
風險因素
🌐 網路存取 (7)
⚙️ 外部命令 (2)
分享與引用此報告
分享版本化評估報告、中性徽章、嵌入卡片與引用。Skillstore 只報告證據,不判斷該 Skill 是否安全。
複製報告連結
https://skillstore.io/skills/sickn33-python-performance-optimization/audits/4?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/sickn33-python-performance-optimization?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/sickn33-python-performance-optimization?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/sickn33-python-performance-optimization/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/sickn33-python-performance-optimization.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>學術引用 (APA · BibTeX · CFF)
APA 引用
sickn33. (2026). python-performance-optimization security audit report (audit version 4) [Author version unspecified]. Skillstore. https://skillstore.io/skills/sickn33-python-performance-optimization/audits/4BibTeX 引用
@techreport{sickn33-sickn33-python-performance-optimization-2026,
author = {sickn33},
title = {python-performance-optimization security audit report (audit version 4)},
institution = {Skillstore},
year = {2026},
number = {4},
url = {https://skillstore.io/skills/sickn33-python-performance-optimization/audits/4},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "python-performance-optimization security audit report (audit version 4)"
version: "unspecified"
type: report
authors:
- name: "sickn33"
date-released: "2026-07-07"
url: "https://skillstore.io/skills/sickn33-python-performance-optimization/audits/4"
identifiers:
- type: other
value: "skillstore:sickn33-python-performance-optimization:audit:4"
description: "Skillstore immutable audit report identifier"
比較變體
3 個可安裝變體每位作者的技能都保留為獨立的可安裝項目。推薦變體依 Skillstore 證據排序。
為何此變體排名第一
sickn33-python-performance-optimization
2026-09-09
wshobson-python-performance-optimization
2026-09-09
activeinferenceinstitute-python-performance-optimization
2026-10-21
Skillstore 評分
評分依據 證據置信度: 高你可以打造什麼
診斷緩慢的應用程式路徑
在變更實作細節前,找出高耗時函式、記憶體壓力和緩慢的 I/O。
改善資料處理工作
為大型工作負載選擇更好的資料結構、批次處理、generators、multiprocessing 或 NumPy。
審查效能 Pull Request
根據實測證據、可讀性和回歸測試涵蓋率,檢查提出的最佳化。
試試這些提示
審查這個 Python 函式,找出可能的效能瓶頸。說明應先測量什麼、使用哪個效能分析器,以及哪些變更最安全。
為這個 Python 服務建立效能剖析計畫。包含 CPU、記憶體、I/O、基準測試輸入、成功指標和驗證步驟。
分析這個 Python 資料管線並提出精準最佳化。考量資料結構、批次處理、generators、caching、multiprocessing 和記憶體使用量。
評估這項效能最佳化提案。比較預期加速效果、營運風險、基準測試設計、回復計畫和缺漏的證據。
最佳實務
- 先進行效能剖析,再最佳化已測量出的熱點路徑。
- 使用具代表性的輸入和清楚的成功指標,讓基準測試可重現。
- 在合併變更前,平衡速度、記憶體、可讀性和營運風險。
避免
- 最佳化尚未被測量為瓶頸的程式碼路徑。
- 在沒有基準測試的情況下,用複雜的微最佳化取代清楚的程式碼。
- 比較來自不同機器、輸入或執行環境設定的效能結果。
常見問題
此技能會替我執行效能剖析工具嗎?
它涵蓋哪些 Python 效能分析器?
它能協助處理記憶體洩漏嗎?
Codex 可以使用此技能進行程式碼審查嗎?
Claude Code 可以套用這些建議嗎?
它只適用於 Web 應用程式嗎?
開發者詳細資訊
作者
sickn33授權
MIT
Skillstore 修訂
r1
版本提示
作者未聲明版本。
引用
9f814fc6a43fd99946f2da5e0df231c65a38bc76
維護新鮮度
2026/7/20
使用量
10 次下載 · 116 次瀏覽
檔案結構