[DGD] Hydra and parse_string
Felix A. Croes
felix at dworkin.nl
Sat Dec 1 20:57:06 CET 2018
bart at wotf.org wrote:
> Hi Felix,
>
> Out of curiosity, how does Hydra handle multiple threads calling some
> centralized function that uses parse_string?
>
> From what I understand, parse_string builds its automatons on-the-fly, would
> that result in rollbacks?
Updating the automatons counts as an object modification, so yes it
could. Eventually, as the automatons are fleshed out and most calls
no longer result in an update, the rollbacks would desist.
If initial rollbacks are an issue, you could create a new parser object
each time, have multiple parser objects, or train the parser with sample
input in the beginning.
Regards,
Felix Croes
More information about the DGD
mailing list