To Jeff
|
10-01-2023, 07:25 AM
Post: #11
|
|||
|
|||
RE: To Jeff
(10-01-2023 06:30 AM)komame Wrote: Jeff, Piotr, Thanks for the ongoing dialogue. Loop unrolling is certainly a common approach that is considered for improving performance (whether if done by hand or by the interpreter / compiler). If some benchmarks were in the benchmark collection with different amounts of unrolling, those could help give some insight as to matters such as those you brought up. (And similarly, with different types of loop structures.) There are many possibilities in symbolic processing of code that could be considered in the future: constant lifting (moving calculations of constants out of loops --- or even non-constant expressions which do not depend on looping etc.), function inlining / expansion (moving the body of called functions into their caller), strength reduction (replacing more expensive function calls with less expensive ones --- based on knowledge of arguments), etc. The graphing engines in their processing do what can be seen as variants of these (viewed through the lens of a general interpreter / compiler); it is easier to do these sorts of things in the graphers as the code there punts to the general-purpose PPL interpreter when things like loops are in the expression to be graphed (or, with the Advanced Graphing app, reject the input). Even some benchmarks comparing the trade-offs here might illuminate the sort of changes that could be beneficial. The bigger picture is: what sort of code is typical for a PPL program? This is why I mentioned "real world" earlier. (If optimizations like the above are already being done, other alternatives are to be considered... Or: do these sorts of tricks apply to typical PPL code?) I'd prefer the benchmarks to be one per file. (If not delivered that way, that's one of the first things I'd do --- separate them into files, one file per benchmark. I'd think this would make collection maintenance simpler.) Jeff my 2ยข |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
RE: To Jeff - David Hayden - 09-19-2023, 08:43 PM
RE: To Jeff - jte - 09-23-2023, 01:25 AM
RE: To Jeff - jte - 09-21-2023, 05:06 AM
RE: To Jeff - komame - 09-24-2023, 06:01 AM
RE: To Jeff - jte - 09-24-2023, 11:02 PM
RE: To Jeff - komame - 09-25-2023, 04:57 PM
RE: To Jeff - KlaasKuperus - 09-28-2023, 03:33 PM
RE: To Jeff - Tyann - 09-30-2023, 05:33 AM
RE: To Jeff - komame - 10-01-2023, 06:30 AM
RE: To Jeff - jte - 10-01-2023 07:25 AM
RE: To Jeff - komame - 10-01-2023, 06:09 PM
RE: To Jeff - jte - 10-02-2023, 10:34 PM
RE: To Jeff - komame - 10-03-2023, 08:59 AM
RE: To Jeff - komame - 10-09-2023, 07:34 PM
|
User(s) browsing this thread: 2 Guest(s)