Commit 6da7216
Optimize bbsplit index handling to avoid large file copies (#9447)
* Optimize bbsplit index handling to avoid large file copies
Replace full directory copy with symlink-based approach: symlink all index
files except summary.txt (which must be copied to apply timestamp fixes).
This significantly reduces I/O overhead while preserving the critical
timestamp correction functionality.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
* Simplify bbsplit index handling implementation
Refactored the bash script sections for index handling to be more concise
and maintainable while preserving all functionality:
- Consolidated directory creation and file operations into single find loops
- Replaced readlink -f with realpath for better macOS compatibility
- Used conditional operators to reduce if/else verbosity
- Inlined variables where appropriate to reduce line count
These changes improve code clarity and cross-platform compatibility
without affecting the underlying logic of file moves, symlink handling,
or timestamp management.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
---------
Co-authored-by: Claude <[email protected]>1 parent c1408b5 commit 6da7216
1 file changed
+12
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
75 | 74 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
| |||
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
98 | | - | |
| 99 | + | |
99 | 100 | | |
100 | | - | |
101 | | - | |
102 | | - | |
| 101 | + | |
| 102 | + | |
103 | 103 | | |
104 | | - | |
105 | | - | |
106 | 104 | | |
107 | 105 | | |
108 | 106 | | |
| |||
0 commit comments