Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-2464

Avoid unnecessary allocations for FileChannel.open call

    XMLWordPrintableJSON

Details

    Description

      ChunkUtils calls FileChannel#open(Path, OpenOption...). Vararg array elements are then added to a new HashSet to call FileChannel#open(Path, Set<? extends OpenOption>, FileAttribute<?>...). We can call the latter directly instead.

      Attachments

        Issue Links

          Activity

            People

              adoroszlai Attila Doroszlai
              adoroszlai Attila Doroszlai
              Votes:
              0 Vote for this issue
              Watchers:
              1 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