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

Using spans #7

Open
AntonC9018 opened this issue Aug 30, 2023 · 1 comment
Open

Using spans #7

AntonC9018 opened this issue Aug 30, 2023 · 1 comment

Comments

@AntonC9018
Copy link

If you never copied from raw bytes to string objects, it would probably be even faster. I'm actually really surprised the standard .NET API's for XML return strings, rather than just pointing at bytes in the buffer. It would be unsafe, but it's really important for high-performance apps.

@ArjunVachhani
Copy link
Owner

@AntonC9018 agreed, minimizing time spent in GC can increase the performance. As you said .NET framework does not support Span<T> based API for XmlReader.

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

No branches or pull requests

2 participants