The registry loader is quite slow because it has to parse ~1200 lines of YAML before it does any validation.
So for the use case in the CAMT package, it has to create a new validator for each IBAN it encounters. (our testing file has about 700 IBAN numbers and that takes quite awhile)
My suggestion would be to use arrays instead of YAML, so it doesn't have to parse anything. What do you guys think?
As requested by: https://github.com/genkgo/camt/pull/110#pullrequestreview-813685962
The registry loader is quite slow because it has to parse ~1200 lines of YAML before it does any validation.
So for the use case in the CAMT package, it has to create a new validator for each IBAN it encounters. (our testing file has about 700 IBAN numbers and that takes quite awhile)
My suggestion would be to use arrays instead of YAML, so it doesn't have to parse anything. What do you guys think?