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

BufferedReader performance can be improved by using StringBuilder

    Details

    • Subcomponent:
    • Resolved In Build:
      b17

      Backports

        Description

        ADDITIONAL SYSTEM INFORMATION :
        Java 11

        A DESCRIPTION OF THE PROBLEM :
        See https://lemire.me/blog/2019/07/26/how-fast-can-a-bufferedreader-read-lines-in-java/

        BufferedReader uses StringBuffer. Swapping that to use StringBuilder seems to give a ~13% performance boost.


          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  bpb Brian Burkhalter
                  Reporter:
                  webbuggrp Webbug Group
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: