[vlc-devel] [PATCH 02/14] misc: background_worker: make the background worker multithreaded

Rémi Denis-Courmont remi at remlab.net
Thu Aug 16 21:30:30 CEST 2018


Le torstaina 16. elokuuta 2018, 17.01.59 EEST Romain Vimont a écrit :
> A way to speed up the preparsing consists in preparsing several inputs
> in parallel.
> 
> For this purpose, make the background worker (used by the preparser and
> fetcher) execute tasks from (possibly) several threads.
> 
> Apart from adding a new field "max_threads" in the
> background_worker_config structure, the background worker API is kept
> unchanged.
> 
> Two new options are added to configure the maximum number of threads
> used for preparsing and fetching:
>  - preparse-threads
>  - fetch-art-threads

I still doubt that default values other than 1 would be safe.

-- 
Реми Дёни-Курмон
http://www.remlab.net/





More information about the vlc-devel mailing list