Building, compiling, and resolving dependency issues across languages
中文简介正在准备中。当前显示原文说明。
Writing efficient code that handles large data and tight constraints
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
How to write code that won't timeout on large inputs.
Before writing code, ask: how big is the data?
| Data size | Approach |
|---|---|
| < 1 MB | Load into memory, any approach works |
| 1-100 MB | Load into memory, but use efficient algorithms |
| 100 MB - 1 GB | Stream/mmap, avoid loading entirely into memory |
| > 1 GB | Streaming only, chunk-based processing |
mmap(), Python: mmap.mmap()) — map file into memory, OS handles pagingfread() in C, open(f, 'rb').read(chunk) in Pythonfgets() when you need random accesswrite() for every bytefwrite() or sys.stdout.buffer.write() for binary outputmmap() for large file access-O2 or -O3 for compiler optimizationsmalloc()/free() in tight loops — pre-allocatememcpy() instead of byte-by-byte copyingnumpy for numerical work (100x faster than pure Python loops)collections.Counter, defaultdict — avoid manual countingstruct.unpack() for binary parsingsubprocess.run() > os.system()wc -c还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Building, compiling, and resolving dependency issues across languages
中文简介正在准备中。当前显示原文说明。
Review Python code for quality, security, and best practices
中文简介正在准备中。当前显示原文说明。
Systematic code review for bugs, security, style, and performance
中文简介正在准备中。当前显示原文说明。
Comprehensive data analysis skill for CSV files using Python and pandas
中文简介正在准备中。当前显示原文说明。
Working with diverse data formats: binary, text, structured, and custom
中文简介正在准备中。当前显示原文说明。
Best practices for creating research diagrams with Excalidraw MCP tools
中文简介正在准备中。当前显示原文说明。