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

[C++] Have a global thread pool

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.10.0
    • C++

    Description

      A few parts of Arrow have started spawning threads to parallelize CPU-bound tasks. They do so by launching a hard-coded number of threads, disregarding machine configuration or the fact that Arrow itself might be used from several threads at once (so hardcoding 8 threads might end up launch N * 8 threads if the user is calling Arrow from N threads at once...).

      Instead we probably want a global thread pool policy, with a singleton thread pool for CPU-bound tasks (using, by default, a number of threads equal to the machine's capacity).

      See discussion in https://github.com/apache/arrow/pull/1893

      Attachments

        Issue Links

          Activity

            People

              apitrou Antoine Pitrou
              apitrou Antoine Pitrou
              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 - 7.5h
                  7.5h