Comments (5)
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 fields. The parser will attempt to parse the xml node with every given dataclass. Then it will take the "successful" attempts and return the one with highest score. This is a very crude process and unfortunately it's very slow.
field_value: List[
Union[
TrtApiVersion,
TfpgaApiVersion,
Tuxmid,
TcellSetId,
TulCarrier,
TcellEntityId,
Tueid,
TglobalTti,
TglobalTtiToDecode,
ExternalTtti,
Tnumerology,
TrntiType,
Trnti,
TsamplingFreq,
TmeasurementState,
TharqProcess,
TsymbolsFreqHop1,
TsymbolsFreqHop2,
TmeanEvm,
TmeanEvmPerLayer,
TevmPerSymbol,
ExternalTevm,
TnumPuschOfdmDmrsSymbols,
TdmrsOfdmSymbolIndex,
ExternalTdmrsSto,
TnumLayers,
ExternalTdmrsStoPerLayer,
ExternalTdmrsPower,
ExternalTdmrsCorrelation,
TnumAntennas,
ExternalTpowerParameters,
ExternalTdcLeakageMeasurement,
TpowerSummary,
TcrcFeedback,
TappliedCfo,
ExternalTdeltaCfo,
TulTimingOffset,
TphaseMeas,
ExternalTphaseMeasurements,
]
] = field(
default_factory=list,
metadata={
"name": "Field",
"type": "Element",
"min_occurs": 33,
"max_occurs": 39,
},
)
from xsdata.
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...
from xsdata.
Thanks @tefra. Please let me know if I can help with further testing.
from xsdata.
Related Issues (20)
- Parsing XML to a class: A sequence of alternatives is wronly parsed HOT 2
- WSDL generation gets overwritten by imported XSD of the same name HOT 1
- self-referencing field - original case recursion error HOT 1
- Question about preferred way of XML parsing HOT 4
- Lxmltreeserializer str versus list HOT 5
- Errors lxmlserializer HOT 5
- Rewrite tree serializers to utilize the existing event writers
- SOAP: Stubs are not generated for most operations in EJBCA WSDL HOT 2
- I would like to write huge trees but don't retain the entire tree in memory HOT 4
- Simultaneous parsing sometimes causes "ConverterWarning: Failed to convert value" HOT 4
- xsdata generate file.xsd fails: AttrsFilters.field_definition() missing 1 required positional argument HOT 2
- Cannot generate nested group references with --unnest-classes HOT 1
- Calls to Ruff format/check fail on Windows for large document sets HOT 3
- Question: Ability to add ` field(repr=False)` for specific fields? HOT 2
- Please bring back support for optional lists HOT 2
- schema check on root element HOT 2
- xsdata failing to generate models for XJustiz XSDs - "missing closing quote in string literal" HOT 2
- Generation raises and index out of range when not all includes are provided HOT 4
- Compatibility issue with `ruff-0.5.0`: ruff <path> has been removed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xsdata.