Commit 43aae79
Optimize struct converter performance with format detection
- Add quick format detection to avoid unnecessary JSON parsing attempts
- JSON format detected by presence of quotes in early characters
- Athena native format processed directly when no quotes detected
- Significant performance improvement for Athena native cases
- All existing tests pass, no functional changes
Performance benefits:
- Athena format: {a=1, b=2} → Direct processing (no JSON exception)
- JSON format: {"a": 1, "b": 2} → Direct JSON parsing
- Fallback: JSON parsing still attempted if format detection fails
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 2b304e8 commit 43aae79
1 file changed
Lines changed: 15 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
| 99 | + | |
107 | 100 | | |
108 | 101 | | |
109 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
110 | 117 | | |
111 | 118 | | |
112 | 119 | | |
| |||
0 commit comments