chore(ai): add comprehensive CLI configurations for all AI assistants
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
51
.gemini/commands/improve-latency.md
Normal file
51
.gemini/commands/improve-latency.md
Normal file
@@ -0,0 +1,51 @@
|
||||
# Improve Latency Performance
|
||||
|
||||
Improve latency performance for the following critical path: $ARGUMENTS
|
||||
|
||||
## Latency Optimization Strategy:
|
||||
|
||||
### 1. **Latency Analysis**
|
||||
- Measure current end-to-end latency
|
||||
- Identify latency components (network, computation, I/O)
|
||||
- Analyze latency distribution and outliers
|
||||
|
||||
### 2. **Optimization Areas**
|
||||
|
||||
#### **Network Latency**
|
||||
- Connection pooling for RPC calls
|
||||
- Request batching and pipelining
|
||||
- Caching frequently accessed data
|
||||
- Asynchronous processing patterns
|
||||
|
||||
#### **Computational Latency**
|
||||
- Algorithmic complexity reduction
|
||||
- Lookup table implementation
|
||||
- Parallel processing opportunities
|
||||
- Precision vs. performance trade-offs
|
||||
|
||||
#### **I/O Latency**
|
||||
- Buffering and streaming optimizations
|
||||
- Disk I/O patterns
|
||||
- Database query optimization
|
||||
- File system caching
|
||||
|
||||
### 3. **MEV Bot Specific Optimizations**
|
||||
|
||||
#### **Critical Path Components**
|
||||
- Transaction detection and parsing (< 10 microseconds target)
|
||||
- Market analysis and arbitrage calculation
|
||||
- Opportunity evaluation and ranking
|
||||
- Execution decision making
|
||||
|
||||
## Implementation Guidelines:
|
||||
- Measure latency at each component
|
||||
- Focus on 95th and 99th percentile improvements
|
||||
- Ensure deterministic performance characteristics
|
||||
- Maintain accuracy while improving speed
|
||||
|
||||
## Deliverables:
|
||||
- Latency benchmark results (before/after)
|
||||
- Latency distribution analysis
|
||||
- Optimization documentation
|
||||
- Monitoring and alerting for latency regressions
|
||||
- Performance vs. accuracy trade-off analysis
|
||||
Reference in New Issue
Block a user