Commit 76fb91b
authored
Rollup merge of rust-lang#64885 - andjo403:iter, r=scottmcm
use try_fold instead of try_for_each to reduce compile time
as it was stated in rust-lang#64572 that the biggest gain was due to less code was generated I tried to reduce the number of functions to inline by using try_fold direct instead of calling try_for_each that calls try_fold.
as there is some gains with using the try_fold function this is maybe a way forward.
when I tried to compile the clap-rs benchmark I get times gains only some % from rust-lang#64572
there is more function that use eg. fold that calls try_fold that also can be changed but the question is how mush "duplication" that is tolerated in std to give faster compile times
can someone start a perf run?
cc @nnethercote @scottmcm @bluss
r? @ghost1 file changed
+14
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1859 | 1859 | | |
1860 | 1860 | | |
1861 | 1861 | | |
1862 | | - | |
1863 | | - | |
| 1862 | + | |
| 1863 | + | |
1864 | 1864 | | |
1865 | 1865 | | |
1866 | 1866 | | |
1867 | 1867 | | |
1868 | | - | |
1869 | | - | |
| 1868 | + | |
1870 | 1869 | | |
1871 | 1870 | | |
1872 | 1871 | | |
| |||
1913 | 1912 | | |
1914 | 1913 | | |
1915 | 1914 | | |
1916 | | - | |
1917 | | - | |
| 1915 | + | |
| 1916 | + | |
1918 | 1917 | | |
1919 | 1918 | | |
1920 | 1919 | | |
1921 | 1920 | | |
1922 | 1921 | | |
1923 | | - | |
| 1922 | + | |
1924 | 1923 | | |
1925 | 1924 | | |
1926 | 1925 | | |
| |||
1972 | 1971 | | |
1973 | 1972 | | |
1974 | 1973 | | |
1975 | | - | |
1976 | | - | |
| 1974 | + | |
| 1975 | + | |
| 1976 | + | |
| 1977 | + | |
1977 | 1978 | | |
1978 | 1979 | | |
1979 | 1980 | | |
1980 | 1981 | | |
1981 | 1982 | | |
1982 | | - | |
| 1983 | + | |
1983 | 1984 | | |
1984 | 1985 | | |
1985 | 1986 | | |
| |||
2004 | 2005 | | |
2005 | 2006 | | |
2006 | 2007 | | |
2007 | | - | |
2008 | | - | |
| 2008 | + | |
| 2009 | + | |
2009 | 2010 | | |
2010 | 2011 | | |
2011 | 2012 | | |
2012 | 2013 | | |
2013 | 2014 | | |
2014 | | - | |
| 2015 | + | |
2015 | 2016 | | |
2016 | 2017 | | |
2017 | 2018 | | |
| |||
0 commit comments