Add comprehensive optimization plan based on C QuickJS analysis
Deep analysis of C QuickJS optimization techniques with actionable plan
for the OCaml implementation:
Key findings from C QuickJS:
- NaN boxing for compact 64-bit value encoding
- Shapes (hidden classes) for shared property descriptors
- Fast array flag with contiguous JSValue storage
- Atom table for O(1) string interning
- String ropes for lazy concatenation
- Computed goto for bytecode dispatch
- Inline caching for property access
Prioritized optimizations for OCaml:
- Phase 1: Quick wins (unsafe access, fast paths)
- Phase 2: Medium effort (atoms, shapes, string ropes)
- Phase 3: Major changes (NaN boxing, inline caching)
- Phase 4: Memory optimizations
Target: 50-100x improvement for array-heavy workloads
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>