[DGD] Hydra and parse_string
bart at wotf.org
bart at wotf.org
Sun Dec 2 13:49:20 CET 2018
On Sat, 01 Dec 2018 20:57:06 +0100, Felix A. Croes wrote
> 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.
>
Thanks, that is quite the behavior I expected.
> 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.
The later solution seems like a very good one to me for my use cases.
Bart.
--
https://www.bartsplace.net/
https://wotf.org/
https://www.flickr.com/photos/mrobjective/
More information about the DGD
mailing list