limit max threads to 32

This commit is contained in:
larshp 2019-02-15 05:22:37 +00:00 committed by Lars Hvam
parent 94c95d46cb
commit a58652954f

View File

@ -134,6 +134,11 @@ CLASS ZCL_ABAPGIT_SERIALIZE IMPLEMENTATION.
ASSERT gv_max_threads >= 1.
IF gv_max_threads > 32.
* https://en.wikipedia.org/wiki/Amdahl%27s_law
gv_max_threads = 32.
ENDIF.
rv_threads = gv_max_threads.
ENDMETHOD.