Commit 066307f
committed
Faster graph traversal functions
* Avoid reversing inputs as we traverse graph
* Simplify io_toposort without ordering (and refactor into its own function)
* Removes client side-effect on previous toposort functions
* Remove duplicated logic across methods1 parent f1a2ac6 commit 066307f
File tree
16 files changed
+516
-438
lines changed- pytensor
- graph
- rewriting
- scan
- tensor/rewriting
- tests
- compile
- graph
- rewriting
- link/numba
- tensor
16 files changed
+516
-438
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
961 | 960 | | |
962 | 961 | | |
963 | 962 | | |
964 | | - | |
| 963 | + | |
965 | 964 | | |
966 | 965 | | |
967 | 966 | | |
| |||
1002 | 1001 | | |
1003 | 1002 | | |
1004 | 1003 | | |
1005 | | - | |
| 1004 | + | |
1006 | 1005 | | |
1007 | 1006 | | |
1008 | 1007 | | |
| |||
1018 | 1017 | | |
1019 | 1018 | | |
1020 | 1019 | | |
1021 | | - | |
| 1020 | + | |
1022 | 1021 | | |
1023 | 1022 | | |
1024 | 1023 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
343 | | - | |
| 343 | + | |
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
347 | | - | |
| 347 | + | |
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
366 | 367 | | |
367 | 368 | | |
368 | 369 | | |
369 | | - | |
| 370 | + | |
370 | 371 | | |
371 | 372 | | |
372 | 373 | | |
| |||
759 | 760 | | |
760 | 761 | | |
761 | 762 | | |
762 | | - | |
| 763 | + | |
763 | 764 | | |
764 | 765 | | |
765 | 766 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
295 | 298 | | |
296 | 299 | | |
297 | 300 | | |
298 | | - | |
| 301 | + | |
299 | 302 | | |
300 | 303 | | |
301 | 304 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
2010 | 2010 | | |
2011 | 2011 | | |
2012 | 2012 | | |
2013 | | - | |
| 2013 | + | |
2014 | 2014 | | |
2015 | 2015 | | |
2016 | 2016 | | |
| |||
2341 | 2341 | | |
2342 | 2342 | | |
2343 | 2343 | | |
2344 | | - | |
| 2344 | + | |
2345 | 2345 | | |
2346 | 2346 | | |
2347 | 2347 | | |
| |||
0 commit comments