Chris Tsou

Results 138 comments of Chris Tsou

> > We need to properly support the `Iterable` type annotation in model fields, and of course support this for both xml/json serialization @skinkie. > > But would this something...

We need to fully support the `Iterable` type annotation for infinite generators in the data models, and the serializers. The pr is a good first attempt @skinkie but it needs...

It's mentioned in a few places in the docs https://xsdata.readthedocs.io/en/latest/data_binding/xml_serializing/#alternative-writers https://xsdata.readthedocs.io/en/latest/api/formats/dataclass/serializers/writers/lxml/#xsdata.formats.dataclass.serializers.writers.lxml.LxmlEventWriter https://xsdata.readthedocs.io/en/latest/api/formats/dataclass/serializers/writers/native/#xsdata.formats.dataclass.serializers.writers.native.XmlEventWriter For normal use cases, the lxml writer is always [faster](https://github.com/tefra/xsdata/actions/runs/9032765557/job/24821596024), 3.4GB xml is not very common 😄

When you specifically pass the class you force the parser to use that class no matter what, if you want to enforce qname lookup, skip passing the target class. ```python...

For repeating choices, or complex sequence elements give [compound fields](https://xsdata.readthedocs.io/en/latest/codegen/config/#compoundfields) a try, it's very tough to figure these out with standalone fields.

You can disable failures on unknown properties @mmakaay https://xsdata.readthedocs.io/en/latest/data_binding/basics/#fail_on_unknown_properties Shouldn't the wsdl include information about the header then, I am not sure what we should generate there...

Hi @nmrtv, you are using the native `XmlEventWriter` right? I am not sure why but [XMLGenerator](https://docs.python.org/3/library/xml.sax.utils.html#xml.sax.saxutils.XMLGenerator), if you switch to the [LxmlEventWriter](https://xsdata.readthedocs.io/en/latest/data_binding/xml_serializing/#alternative-writers) you will get a validation error from lxml...

These numbers look awful 😞, but yeah xsdata like most pure python binding libraries will always be slower. In your case specifically it's way worse because of all the union...

Leave it open, I want to take a look with the given sample to see if there is anything we can do to improve the performance...

Hi @DareDevilDenis, I added an optimization to select earlier the correct element based on fixed attributes, I am not gonna say the performance is now great, but according to my...