powsybl / pypowsybl

A PowSyBl and Python integration based on GraalVM native image
Mozilla Public License 2.0
52 stars 10 forks source link

Fix and improve performance of pickle serialization #750

Closed geofjamg closed 1 month ago

geofjamg commented 2 months ago

Please check if the PR fulfills these requirements

Does this PR already have an issue describing the problem?

No

What kind of change does this PR introduce?

Performance improvement and bug fix

What is the current behavior?

We use the XIIDM serialization to implement pickle dump and load. Also since peruniting refactoring pickle serialization is broken.

What is the new behavior (if this is a feature change)? We now use the new BIIDM serialization which is 2 times faster than XIIDM one. Pickle serialization has also been repaired.

Does this PR introduce a breaking change or deprecate an API?

If yes, please check if the following requirements are fulfilled

What changes might users need to make in their application due to this PR? (migration steps)

Other information: