https://bugs.freedesktop.org/show_bug.cgi?id=75897

          Priority: medium
            Bug ID: 75897
                CC: [email protected]
          Assignee: [email protected]
           Summary: create 'get best number of threads' API in sal
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: [email protected]
          Hardware: Other
            Status: NEW
           Version: 4.2.0.0.alpha0+ Master
         Component: Libreoffice
           Product: LibreOffice

A reasonably simple easy hack to add an API to fetch an optimal number of
threads (presumably the same as the core count usually ;) That is needed to
setup optimal parallelism in calc XLSX loading eg.

See:

sc/source/filter/oox/workbookfragment.cxx

    sal_Int32 nThreads = std::min( rSheets.size(), (size_t) 4 /* FIXME: ncpus/2
*/ );

Notice the '4' ;-)

not ideal - clearly.

The API should live inside sal/osl/ and include/osl/ and just wrap thinly the
underlying OS parameters without being hyper-complicated.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to