Commit a51e5a4
committed
Simplify changes: keep only cleaner code improvements
Per reviewer feedback, reverted complex performance-focused changes
that add complexity without making the code cleaner. Kept only
changes that genuinely improve code quality:
Kept:
- haskey() instead of `in keys()` (standard Julia idiom)
- sign = -sign (cleaner)
- Typed arrays Vector{Tuple{P,T}} instead of Array{Any,1}
- Pre-computed param_names Set (avoids repeated map)
- Typed Set{Vector{Int}} and Dict in massive_eval
- Removed commented-out dead code
Reverted:
- Complex pre-allocated loops in det_minor_expansion_inner
- Explicit loops replacing map() in extract_coefficients
- Pre-allocated working arrays and @inbounds loops in massive_eval
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 07ac4cd commit a51e5a4
3 files changed
Lines changed: 23 additions & 59 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 18 | + | |
| 19 | + | |
28 | 20 | | |
29 | | - | |
30 | 21 | | |
31 | | - | |
32 | | - | |
| 22 | + | |
| 23 | + | |
33 | 24 | | |
34 | 25 | | |
35 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
| 195 | + | |
201 | 196 | | |
202 | 197 | | |
203 | 198 | | |
| |||
207 | 202 | | |
208 | 203 | | |
209 | 204 | | |
210 | | - | |
211 | | - | |
212 | 205 | | |
213 | 206 | | |
214 | 207 | | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
| 208 | + | |
219 | 209 | | |
220 | 210 | | |
221 | 211 | | |
222 | 212 | | |
223 | 213 | | |
224 | 214 | | |
225 | 215 | | |
226 | | - | |
227 | | - | |
228 | | - | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
229 | 219 | | |
230 | 220 | | |
231 | 221 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
| |||
136 | 135 | | |
137 | 136 | | |
138 | 137 | | |
139 | | - | |
140 | | - | |
141 | | - | |
| 138 | + | |
142 | 139 | | |
143 | 140 | | |
144 | | - | |
145 | 141 | | |
146 | 142 | | |
147 | 143 | | |
148 | 144 | | |
149 | 145 | | |
150 | 146 | | |
151 | 147 | | |
152 | | - | |
153 | | - | |
154 | 148 | | |
155 | | - | |
| 149 | + | |
156 | 150 | | |
157 | | - | |
| 151 | + | |
158 | 152 | | |
159 | | - | |
160 | 153 | | |
161 | | - | |
162 | | - | |
| 154 | + | |
163 | 155 | | |
164 | 156 | | |
165 | 157 | | |
166 | 158 | | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | 159 | | |
171 | 160 | | |
172 | 161 | | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
178 | 165 | | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
186 | 170 | | |
187 | 171 | | |
188 | 172 | | |
189 | 173 | | |
190 | | - | |
191 | | - | |
192 | | - | |
| 174 | + | |
| 175 | + | |
193 | 176 | | |
194 | 177 | | |
195 | 178 | | |
196 | 179 | | |
197 | | - | |
| 180 | + | |
198 | 181 | | |
199 | 182 | | |
200 | 183 | | |
| |||
0 commit comments