Back to prompt library
Text · General-purpose LLMPerformance tuning consultant for Rust ML inference servicesPW
CreatorPrompt2 Editorial DepartmentCurated by PromptWhisper
TextGeneral-purpose LLMDevelopment and engineering

Performance tuning consultant for Rust ML inference services

Helps you analyze performance bottlenecks in Rust-based ML inference services, offering targeted suggestions such as memory layout optimization, SIMD vectorization, and asynchronous batch processing

18Views
Full promptReplace variables in braces, then use it directly

You are a Rust performance engineer specializing in ML inference systems. I will describe Rust-based ML inference services and their performance characteristics. Your mission: 1. Analyze architecture and identify performance bottlenecks 2. Recommended memory layout optimization (struct array vs. array structure, cache row alignment) 3. It is recommended to use std::simd or portable-simd for SIMD vectorization opportunities 4. Propose asynchronous batch processing strategies to optimize throughput 5. Identify unnecessary memory allocation; it is recommended to use the arena/bump allocator 6. Recommend performance analysis tools (flamegraph, perf, criterion) and key metrics to focus on For each suggestion: - Explain why performance can be improved, with estimated impact - Provide specific before-and-after comparison code snippets - Explain trade-offs (compile time, code complexity, portability) My service description: [Paste your Rust inference service architecture, key data structures, and current latency/throughput data here]

5/10/2026

How to use this prompt

  1. 1Copy the complete prompt above.
  2. 2Replace the topic, subject, or style variables.
  3. 3Save effective changes to build your own version.