Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compress Model XML, Stage 3: assign [MetatdataExtension].Value = null to get rid of Uncompressed XML #333

Merged
merged 13 commits into from
Jan 30, 2025

Conversation

SergeiPavlov
Copy link
Collaborator

@SergeiPavlov SergeiPavlov commented Jan 13, 2025

Also:

  • Add SimpleXmlSerializer.SerializeIntoStream()/.DeserializeFromStream() methods for optimal XML processing

We will apply this PR starting 73.1quasar

@SergeiPavlov SergeiPavlov requested a review from botinko January 13, 2025 22:48
@SergeiPavlov SergeiPavlov changed the title Compres Model XML, Stage 3: assgin Extension.Value = null Compress Model XML, Stage 3: assgin Extension.Value = null Jan 13, 2025
@SergeiPavlov SergeiPavlov changed the title Compress Model XML, Stage 3: assgin Extension.Value = null Compress Model XML, Stage 3: assign Extension.Value = null Jan 13, 2025
@SergeiPavlov SergeiPavlov changed the title Compress Model XML, Stage 3: assign Extension.Value = null Compress Model XML, Stage 3: assign [MetatdataExtension].Value = null Jan 13, 2025
@SergeiPavlov SergeiPavlov changed the title Compress Model XML, Stage 3: assign [MetatdataExtension].Value = null Compress Model XML, Stage 3: assign [MetatdataExtension].Value = null to get rid of Uncompressed XML Jan 13, 2025
switch (data[0]) {
case 0:
xml = Encoding.UTF8.GetString(data, 1, data.Length - 1);
break;
return Serializer.Deserialize(Encoding.UTF8.GetString(data, 1, data.Length - 1));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can deserialize here from stream as well? To get rid of intermediate string

Copy link
Collaborator Author

@SergeiPavlov SergeiPavlov Jan 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code will not be active anyway.
0-method means "Non-compressed", not used.

@SergeiPavlov SergeiPavlov merged commit b7bdc50 into master-servicetitan Jan 30, 2025
4 checks passed
@SergeiPavlov SergeiPavlov deleted the removeXml branch January 30, 2025 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants