Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8212726

Replace some use of drop- and foldArguments with filtering argument combinator in StringConcatFactory

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 11, 12
    • Fix Version/s: 12
    • Component/s: core-libs

      Description

      StringConcatFactory uses a customized internal foldArguments implementation which takes positional arguments to avoid intermediary permutation steps, see JDK-8165492

      In preparation of possibly making this a public API, I realized that we could probably profit some from a filtering combinator based on the same logic. Applying this implementation to StringConcatFactory proves it can get rid of a significant number of LFs with retained performance characteristics, strengthening the case to include this in the public API

        Attachments

          Activity

            People

            • Assignee:
              redestad Claes Redestad
              Reporter:
              redestad Claes Redestad
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: