Hi,
I have a JSON document that has as a property a list of objects which is quite long and costly to parse.
I only need one element of this list and I think it would speed things up if msgspec had a way to just stop parsing the list, when a specific object is found.
Is there any callback/hook in msgspec where I can implement such a behaviour? I think it is similar to Contstaints but with the stopping aspect when the constraint is matched.
Question
Hi, I have a JSON document that has as a property a list of objects which is quite long and costly to parse. I only need one element of this list and I think it would speed things up if msgspec had a way to just stop parsing the list, when a specific object is found. Is there any callback/hook in msgspec where I can implement such a behaviour? I think it is similar to Contstaints but with the stopping aspect when the constraint is matched.
Best regards, Christian