Commit 2732898
authored
Faster substitutions with
* Disable evaluation during substitution
* Use xreplace instead of subs
For my current benchmark, this reduces the time for one `smart_subs_dict` call from over 21h (still running...) to ~12min.
Disabling evaluation during substitution may prevent simplification of some expressions during substitution, but those can be simplified later on.smart_subs_dict (#3025)1 parent d20f97b commit 2732898
1 file changed
+13
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
428 | 429 | | |
429 | 430 | | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
435 | 439 | | |
436 | 440 | | |
437 | 441 | | |
| |||
0 commit comments