Uploaded image for project: 'Apache Fineract'
  1. Apache Fineract
  2. FINERACT-747

Performance updates : change String.replaceAll() to replace() if the replaced one is plain string.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0
    • None

    Description

      Locations: 

      (1) fineract-provider/src/main/java/org/apache/fineract/accounting/rule/api/AccountingRuleJsonInputParams.java
      (2) fineract-provider/src/main/java/org/apache/fineract/infrastructure/bulkimport/populator/fixeddeposits/

      FixedDepositTransactionWorkbookPopulator.java
      (3) fineract-provider/src/main/java/org/apache/fineract/infrastructure/bulkimport/populator/loanrepayment/LoanRepaymentWorkbookPopulator.java
      (4) fineract-provider/src/main/java/org/apache/fineract/infrastructure/bulkimport/populator/savings/SavingsTransactionsWorkbookPopulator.java
      (5) fineract-provider/src/main/java/org/apache/fineract/portfolio/common/domain/ConditionType.java
      (6) fineract-provider/src/main/java/org/apache/fineract/portfolio/group/service/CenterReadPlatformServiceImpl.java
      (7) fineract-provider/src/main/java/org/apache/fineract/portfolio/group/service/GroupReadPlatformServiceImpl.java
      (8) fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/service/LoanReadPlatformServiceImpl.java

       

      The String.replaceAll(regex, other) is usually used to replace strings represented by regular expression "regex". When the replaced string is a plain string but regex form, the String.replace(origin, other) is recommended as it does not need to compile and can improve the performance.

      Attachments

        1. 1.patch
          10 kB
          bd2019us

        Issue Links

          Activity

            People

              bd2019us bd2019us
              bd2019us bd2019us
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m