Commit bea9ad5
committed
Use multiple dispatch for verbose processing to eliminate runtime dispatches
Replaced if-else type checking with multiple dispatch methods for
processing the verbose parameter. This eliminates runtime dispatches
that JET was detecting.
Changes:
- Created _process_verbose_param helper methods using multiple dispatch
- One method for each supported type: LinearVerbosity, AbstractVerbosityPreset, Bool
- The verbose processing now compiles to direct method dispatch
- Fully type-stable for all supported verbose parameter types
This should eliminate the runtime dispatches seen in JET analysis.1 parent 5abf86b commit bea9ad5
1 file changed
+13
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
235 | 247 | | |
236 | 248 | | |
237 | 249 | | |
| |||
324 | 336 | | |
325 | 337 | | |
326 | 338 | | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
| 339 | + | |
347 | 340 | | |
348 | 341 | | |
349 | 342 | | |
| |||
0 commit comments