gordonwatts / LINQtoROOT

Convert a LINQ query into a ROOT TSelector, and run it
GNU Lesser General Public License v2.1
1 stars 0 forks source link

Lift the Proxy generate code out of teh inside loop to make it more efficient #260

Open gordonwatts opened 6 years ago

gordonwatts commented 6 years ago
                // Next, generate and slim the proxy file and the TSelector file
                var proxyFile = await local.GenerateProxyFile(files, _exeReq.TreeName, queryDirectory);
                var slimedProxyFile = SlimProxyFile(referencedLeafNames, proxyFile, queryDirectory);
                TraceHelpers.TraceInfo(14, "ExecuteQueuedQueries: Startup - building the TSelector");
                var templateRunner = WriteTSelector(slimedProxyFile.Name, Path.GetFileNameWithoutExtension(proxyFile.Name), combinedInfo, queryDirectory);

That generate proxy file can be quite expensive - so when we have lots to run, why not do it just once, and then copy over the file.