Steve Lawrence created DAFFODIL-3064:
----------------------------------------

             Summary: Reduce Future allocation in CLI performance command
                 Key: DAFFODIL-3064
                 URL: https://issues.apache.org/jira/browse/DAFFODIL-3064
             Project: Daffodil
          Issue Type: Bug
          Components: CLI, Performance
            Reporter: Steve Lawrence
            Assignee: Steve Lawrence
             Fix For: 4.1.0


The CLI performance command creates N futures, where N is the total number of 
files to process. So if we wanted to test the performance of 200,000 files, we 
create 200,000 futures.

In profiling, this doesn't seem to make a difference, but all those Future 
allocations does make it more difficult to see actual allocations. Instead we 
should have just a single Future per thread that loops until all the input 
files are processed. Not only does this reduce allocations, it also matches 
real world usage, where there is a single serial producer and long running 
parallel consumers.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to