inpKeywordHelper¶
Module Contents¶
This module contains functions meant to assist with creating inpKeyword blocks in parallel. This process is not currently providing
much performance benefit (perhaps a 25% speedup when running with 4 cores vs. single core), so its usage is not recommended.
- inpKeywordHelper.inpKeywordInit(rawstringsin, Args)¶
Initializes variables needed in each process when parsing keywords in parallel.
- Parameters:
rawstringsin (list) – A list of strings. Each string should correspond to the text of an entire keyword block. The list will be turned into a global variable for the subprocesses.
Args (dict) – Each item in Args will be converted to a global variable. This should be set to
inpKeywordArgsin most cases.
- inpKeywordHelper.inpKeywordHelper(num)¶
Creates an
inpKeywordfor rawstrings[num], referencing the items passed toinpKeywordInit()via Args.- Parameters:
num (int) – An integer representing the item from rawstrings on which to operate.