lechu445 / lightxmlwriter Goto Github PK
View Code? Open in Web Editor NEWLight alternative of XmlWriter
Home Page: https://www.nuget.org/packages/LightXmlWriter/
License: MIT License
Light alternative of XmlWriter
Home Page: https://www.nuget.org/packages/LightXmlWriter/
License: MIT License
Would it be possible to add a support for ReadOnlySpans
even for .NET Standard? It would basically mean to
System.Memory
packageRationale:
.NET Standard is now mostly used by libraries that target .NET Core and .NET Framework (also few other, more obscure platforms, I got a bug for Unity).
From practical standpoint, it is very likely they will multi-target .NET Core in the future and take advantage of cool improvements in API (e.g. double.TryFormat
as LightXmlWriter sometimes does). In that case, they will likely want to use Span ecosystem for .NET Core.
If anyone is using this library, they most certainly do care about performance and it is highly likely they already use System.Memory package, though they might support .NET Standard for widest audiance.
In current situation, they would have to do conditional compiling for multi targeting
#if NETSTANDARD
// use string api because LightXmlWriter only exposes strings API for WriteValue and few others
#else
// use span api
#endif
By adding the Span API for .NET Standard, it would be possible to work around limitations of .NET Framework for allocations (e.g. values are written through ToString
methods, see reference source).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.