Skip to content

Performance Settings

RenzMc edited this page Sep 6, 2025 · 1 revision

πŸ”§ Performance Settings

This guide explains how to optimize the performance of the Acode AI CLI Assistant Plugin for your specific device and usage patterns.

🎯 Overview

Performance settings allow you to balance functionality with resource consumption, ensuring the plugin works efficiently on your device while providing the best possible experience.

βš™οΈ Real-Time Analysis Settings

Debounce Timing

Control how frequently the plugin performs real-time analysis:

  • High Sensitivity: 1-second debounce (immediate feedback)
  • Medium Sensitivity: 5-second debounce (balanced approach)
  • Low Sensitivity: 10-second debounce (resource conservation)

Cache Management

Adjust how the plugin caches AI responses:

  • Short Cache: 1-minute expiration (most current results)
  • Medium Cache: 5-minute expiration (balanced performance)
  • Long Cache: 30-minute expiration (maximum resource savings)

πŸ“ˆ Token Usage Optimization

Content Filtering

The plugin intelligently filters what content is sent to AI providers:

  • Context Limiting: Only sends relevant portions of your code
  • File Size Checking: Avoids sending extremely large files
  • Smart Selection: Focuses on selected code when available

Usage Tracking

Monitor your token consumption:

  • Session Tokens: Current session usage
  • Daily Tokens: 24-hour usage cycle
  • Total Tokens: All-time token consumption

πŸ”‹ Battery Conservation

Low Battery Mode

The plugin automatically adjusts behavior when battery is low:

  • Reduced Animations: Disables non-essential visual effects
  • Extended Debounce: Increases wait time between analysis
  • Limited Features: Temporarily disables resource-intensive features

Manual Battery Settings

You can manually configure battery-conscious behavior:

  • Disable Real-Time Analysis: Turn off live code suggestions
  • Reduce Animation Intensity: Minimize visual effects
  • Limit History Storage: Reduce conversation history retention

πŸ“± Device-Specific Optimizations

Mobile Devices

Optimizations for phones and tablets:

  • Memory Management: Efficient cleanup of unused resources
  • Network Handling: Better management of intermittent connections
  • UI Scaling: Appropriate sizing for touch interfaces

High-Performance Devices

Settings for powerful hardware:

  • Enhanced Features: Enable all plugin capabilities
  • Frequent Analysis: Reduce debounce timing for immediate feedback
  • Rich Animations: Enable all visual effects

🌐 Network Optimization

Connection Handling

  • Retry Logic: Automatic retry for failed requests
  • Timeout Settings: Configurable request timeout values
  • Offline Mode: Limited functionality when offline

Data Efficiency

  • Compression: Minimize data transfer size
  • Batching: Combine multiple requests when possible
  • Prioritization: Send most important requests first

πŸ—ƒοΈ Storage Management

History Storage

Control how conversation history is stored:

  • History Limit: Set maximum number of saved conversations
  • Auto-Cleanup: Automatically remove old conversations
  • Storage Location: Configure where history is saved

Cache Storage

Manage local caching behavior:

  • Cache Size: Limit total cache storage
  • Cache Duration: Set how long items remain cached
  • Selective Caching: Choose which operations to cache

πŸ› οΈ Advanced Performance Tuning

Memory Usage Settings

  • Cleanup Intervals: How frequently to clean up memory
  • History Retention: How many conversations to keep in memory
  • Code Cache: How much code context to retain

Processing Priority

  • Background Processing: Lower priority for non-critical tasks
  • UI Responsiveness: Higher priority for interface updates
  • AI Request Queue: Manage order of AI requests

πŸ“Š Performance Monitoring

Built-In Metrics

The plugin tracks several performance indicators:

  • Response Time: Average AI response time
  • Memory Usage: Current memory consumption
  • Network Requests: Number of API calls made
  • Cache Hits: Percentage of requests served from cache

Performance Logs

  • Session Statistics: Track performance during current session
  • Error Rates: Monitor failed requests and issues
  • Resource Consumption: Measure CPU and memory usage

πŸ› Troubleshooting Performance Issues

Common Problems

Slow Response Times

  • Check your internet connection speed
  • Verify AI provider is functioning properly
  • Adjust debounce timing in settings
  • Clear cache to resolve potential issues

High Memory Usage

  • Reduce conversation history retention
  • Limit cache size in settings
  • Restart Acode to clear memory
  • Disable real-time analysis if needed

Frequent Errors

  • Check API key validity
  • Verify provider quotas and limits
  • Adjust retry logic settings
  • Check network connectivity

Battery Drain

  • Enable low battery mode
  • Reduce animation intensity
  • Increase debounce timing
  • Limit background processing

Performance Verification

To verify performance optimizations are working:

  1. Open the AI assistant
  2. Check settings menu for performance options
  3. Monitor response times and resource usage
  4. Verify battery-conscious features activate when needed

πŸ’‘ Best Practices

For Mobile Devices

  1. Use medium or low sensitivity settings
  2. Enable battery conservation features
  3. Limit conversation history retention
  4. Use local AI providers (Ollama) when possible

For Development Work

  1. Use high sensitivity for immediate feedback
  2. Maintain longer cache durations for frequently asked questions
  3. Keep conversation history for reference
  4. Monitor token usage to stay within provider limits

For Resource-Constrained Environments

  1. Disable real-time analysis
  2. Use longer debounce timing
  3. Limit cache storage
  4. Reduce animation effects

πŸ“ž Getting Help

If you encounter performance issues:

  1. Check the Common Issues documentation
  2. Visit our GitHub Issues page
  3. Join our Discussions community for support

Clone this wiki locally