# Performance (EXPERIMENTAL)

{% hint style="danger" %}
PLEASE DO NOT MESS WITH ANYTHING HERE UNLESS YOU KNOW WHAT YOU ARE DOING, IF YOU DONT THEN IT COULD BREAK THE PLUGIN
{% endhint %}

{% hint style="danger" %}
Some of these features May NOT work. If you do dare to try, please let me know which ones
{% endhint %}

#### Display Entity Settings

```yaml
performance:
  max_preview_blocks: 1000  # Limit preview blocks
  async_preview: true       # Async updates
  preview_throttle: 50      # Update delay (ms)
```

#### Memory Management

* Clear unused previews
* Limit selection sizes
* Use efficient block storage
* Implement caching
* Regular cleanup cycles

#### CPU Usage

* Async preview updates
* Throttled updates
* Efficient calculations
* Optimized algorithms
* Background processing

#### Network Impact

* Compressed packets
* Batched updates
* Local caching
* Reduced frequency
* Priority queuing

### Configuration Examples

#### High Performance

```yaml
performance:
  max_preview_blocks: 500
  async_preview: true
  preview_throttle: 100
  batch_updates: true
  use_cache: true
```

#### Memory Efficient

```yaml
performance:
  max_preview_blocks: 250
  cleanup_interval: 300
  cache_size: 1000
  auto_purge: true
```

#### Network Optimized

```yaml
performance:
  compression: true
  batch_size: 50
  update_interval: 100
  priority_distance: 32
```
