# Roblox Luau Performance Optimization V29

Review Luau hot paths and propose focused, correctness-preserving Roblox performance improvements using measured profiling evidence.

**Canonical URL:** https://skillshunter.net/skills/discovered-3b089858cf0cac1d49a2c4ea88fafc2b1b154fb1ea8bd1c5

**JSON URL:** https://skillshunter.net/api/public/v1/skills/discovered-3b089858cf0cac1d49a2c4ea88fafc2b1b154fb1ea8bd1c5

**Markdown URL:** https://skillshunter.net/skills/discovered-3b089858cf0cac1d49a2c4ea88fafc2b1b154fb1ea8bd1c5.md

**Instructions download URL:** https://skillshunter.net/skills/discovered-3b089858cf0cac1d49a2c4ea88fafc2b1b154fb1ea8bd1c5/download

**Category:** Software & Development

**Source URL:** https://github.com/Aziz24666/Codex_Roblox_skills/blob/eb2be117f63d6442c0f9b6d9d38bbdd7adf9374c/v29/skills/roblox-luau-performance-optimization-v29/SKILL.md

**Source commit:** eb2be117f63d6442c0f9b6d9d38bbdd7adf9374c

**Listing approved at:** 2026-11-30

**Created at:** 2026-11-29T11:00:53.000000Z

**Updated at:** 2026-11-30T06:51:59.000000Z

## Catalog information

The following descriptions are catalog information. Listing approval does not mean the skill has been tested or is safe for every environment.

### Editor's note

Before proposing changes, ensure that a reproducible symptom and profiler evidence are provided. Define a before/after test with equivalent scene, device, build settings, and player count.

### When to use it

- Identify and resolve performance bottlenecks in Roblox games using profiling data
- Propose performance improvements that preserve correctness and maintainability
- Validate optimization changes with before/after testing and regression checks

## Skill instructions

---
name: roblox-luau-performance-optimization-v29
description: Review Luau hot paths and propose focused, correctness-preserving Roblox performance improvements using measured profiling evidence.
---

# Luau Performance Optimization

## Workflow

1. Require a reproducible symptom and profiler evidence before calling a code path a bottleneck.
2. Inspect the full call path, execution frequency, data size, client/server boundary, and lifetime of created objects.
3. Review tight polling, redundant work, repeated hierarchy traversal, expensive per-frame callbacks, repeated allocation/cloning, and unnecessary remote or replicated updates.
4. Estimate the complexity and correctness risks of possible changes before implementation.
5. Prefer the smallest targeted change; preserve authoritative server decisions, deterministic behavior where required, and clear ownership of state.
6. Define a before/after test with equivalent scene, device, build settings, and player count.
7. Re-profile and run relevant functional, multiplayer, and persistence regressions.
8. Reject an optimization that improves a microbenchmark but harms responsiveness, correctness, maintainability, or real player experience.

## Output

For every recommendation state: measured evidence, suspected cause, proposed change, risks, expected metric, validation method, and rollback approach. Clearly separate measured facts from hypotheses.

## Do not

Do not blindly replace event-driven logic with polling, introduce pooling without lifecycle cleanup, cache mutable state without invalidation, reduce replication at the cost of correctness, or weaken server validation to save CPU. Do not mass-rewrite unrelated files.

