Skip to content

Commit f53cd37

Browse files
Peter Neissclaude
andcommitted
Phase 112: Add std::span accessors to Proto and ProtoDebugInfo
- Added std::span accessors for all Proto arrays: - getCodeSpan() for instruction array - getConstantsSpan() for constants array - getProtosSpan() for nested prototypes array - getUpvaluesSpan() for upvalues array - Added std::span accessors for ProtoDebugInfo arrays: - getLineInfoSpan() for line information - getAbsLineInfoSpan() for absolute line info - getLocVarsSpan() for local variables - Converted GC traversal (gc_marking.cpp): - traverseproto() now uses range-based for loops with spans - Much cleaner and more readable code - Converted serialization (ldump.cpp): - All dump functions use span accessors - Range-based for loops replace indexed loops - Improved type safety and readability - Added comprehensive std::span modernization plan document Performance: 2.36s average (baseline ~2.17-4.20s) - zero regression All tests passing: final OK !!! 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 09885f4 commit f53cd37

File tree

4 files changed

+1364
-37
lines changed

4 files changed

+1364
-37
lines changed

0 commit comments

Comments
 (0)