You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to simplify the code and to make the validation faster i have the intention to refactoring the inner validation methods using decode/encode instead of generators (iter_decode/iter_encode).
The reason is that these generators returns a single value, eventually preceded by one or more validation errors. The code for iterating generators is more complex and slower.
Furthermore, the errors propagation is repeated at each level of the XML tree, slowing down the process.
The collecting of the errors (in 'lax' mode) will be handled with a list in kwargs (already used if provided).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In order to simplify the code and to make the validation faster i have the intention to refactoring the inner validation methods using decode/encode instead of generators (iter_decode/iter_encode).
The reason is that these generators returns a single value, eventually preceded by one or more validation errors. The code for iterating generators is more complex and slower.
Furthermore, the errors propagation is repeated at each level of the XML tree, slowing down the process.
The collecting of the errors (in 'lax' mode) will be handled with a list in kwargs (already used if provided).
Beta Was this translation helpful? Give feedback.
All reactions