Commit 52ee242
refactor: eliminate duplicate header_range calculation
## 問題
`_calculate_header_range()`が同じ引数で2回呼び出されていた:
- L456: マージセルキャッシュ構築時
- L495: データ取得時
## 解決策
- `header_range = None`を事前に初期化
- L456で1回だけ計算
- L495で計算済みの値を再利用
## 効果
- ✅ パフォーマンス向上(重複計算の削減)
- ✅ 可読性向上(意図が明確)
- ✅ 保守性向上(計算ロジックが1箇所のみ)
## テスト
- 既存の全テスト(120個)が通過
- 動作に変更なし
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 273390b commit 52ee242
1 file changed
Lines changed: 12 additions & 13 deletions
File tree
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
| 431 | + | |
431 | 432 | | |
432 | 433 | | |
433 | 434 | | |
| |||
491 | 492 | | |
492 | 493 | | |
493 | 494 | | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
507 | 505 | | |
| 506 | + | |
508 | 507 | | |
509 | 508 | | |
510 | 509 | | |
| |||
0 commit comments