Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-16850

[C++] Improve csv writer by copying data and delimiter separately

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 9.0.0
    • C++

    Description

      Profiling csv writer with Arm Statistical Profiling Extension (SPE) reveals there is relatively high branch misprediction rate from memcpy, due to interleaving copying data field and delimiter which is very short(1 or 2 chars). Copying delimiter with specific code, memcpy only the data field improves performance significantly.

      Attachments

        Issue Links

          Activity

            People

              yibocai Yibo Cai
              yibocai Yibo Cai
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 2h 10m
                  2h 10m