VOOZH about

URL: https://www.nuget.org/packages/Sylvan.Common/

⇱ NuGet Gallery | Sylvan.Common 0.4.3




👁 Image
Sylvan.Common 0.4.3

Prefix Reserved
dotnet add package Sylvan.Common --version 0.4.3
 
 
NuGet\Install-Package Sylvan.Common -Version 0.4.3
 
 
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Sylvan.Common" Version="0.4.3" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sylvan.Common" Version="0.4.3" />
 
Directory.Packages.props
<PackageReference Include="Sylvan.Common" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Sylvan.Common --version 0.4.3
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Sylvan.Common, 0.4.3"
 
 
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Sylvan.Common@0.4.3
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Sylvan.Common&version=0.4.3
 
Install as a Cake Addin
#tool nuget:?package=Sylvan.Common&version=0.4.3
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Sylvan.Common

The Sylvan.Common library contains a collection of types and extensions that I've developed over time. Most of these will not be of much interest to most people, but you're free to use it if you do.

IsoDate

Exposes methods to convert to and from ISO 8601 formatted dates. These are faster than the default DateTime implementation since they don't need to account for a variety of formats and cultures. DateTime.TryParse performance is best when using the "O" (round-trip) format specifier, which requires a very specific ISO 8601 format. IsoDate attempts to be a bit more lenient in what it parses, while maintaining high performance. This code was largely taken from an implementation in System.Text.Json, which I then modified in the following way:

  • Handles chars instead of bytes, as the S.T.Json impl was utf-8 specific.
  • Allows ' ' in place of 'T' as time separator. Not ISO compliant, but common enough that I wanted to support it.
  • Allows ',' in place of '.' as fractional time separator, which ISO8601 apparently allows, but isn't supported by S.T.Json.
  • Rounds appropriately when more than 7 fractional second digits are parsed. Nanoseconds are important, right.

StringPool

This type provides a means of de-duping strings upon construction. It is conceptually similar to the System.Xml.NameTable type, which is intended to de-dupe the repetitive names in XML. This implements a dictionary that only allows adding by calling string GetString(char[] buffer, int offset, int length), which will return an existing string if the same sequence has already been seen. This was created to de-dupe strings in the Sylvan.Data.Csv.CsvDataReader implementation. This type has no eviction policy, so it is essentially a giant memory leak until it is GCed. If you are intending to use this along with the Sylvan CSV reader, you might investigate using Ben.StringPool instead, which offers a more robust implementation that includes LRU cache eviction, making it suitable for use in longer-lived scopes.

PooledMemoryStream

Implements an in-memory buffer, similar to MemoryStream, but instead maintaining a contiguous block of memory, uses a series of fixed-size pages to hold data. Pages are allocated from an ArrayPool. This is intended for specific high-performance scenarios, where it can offer better performance than MemoryStream.

StringBuffer

Implements a TextWriter that uses the same pattern as the PooledMemoryStream.

... and more

Product Versions Compatible and additional computed target framework versions.
.NET net5.0 net5.0 was computed.  net5.0-windows net5.0-windows was computed.  net6.0 net6.0 is compatible.  net6.0-android net6.0-android was computed.  net6.0-ios net6.0-ios was computed.  net6.0-maccatalyst net6.0-maccatalyst was computed.  net6.0-macos net6.0-macos was computed.  net6.0-tvos net6.0-tvos was computed.  net6.0-windows net6.0-windows was computed.  net7.0 net7.0 was computed.  net7.0-android net7.0-android was computed.  net7.0-ios net7.0-ios was computed.  net7.0-maccatalyst net7.0-maccatalyst was computed.  net7.0-macos net7.0-macos was computed.  net7.0-tvos net7.0-tvos was computed.  net7.0-windows net7.0-windows was computed.  net8.0 net8.0 was computed.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
.NET Core netcoreapp2.0 netcoreapp2.0 was computed.  netcoreapp2.1 netcoreapp2.1 was computed.  netcoreapp2.2 netcoreapp2.2 was computed.  netcoreapp3.0 netcoreapp3.0 was computed.  netcoreapp3.1 netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 netstandard2.0 is compatible.  netstandard2.1 netstandard2.1 is compatible. 
.NET Framework net461 net461 was computed.  net462 net462 was computed.  net463 net463 was computed.  net47 net47 was computed.  net471 net471 was computed.  net472 net472 was computed.  net48 net48 was computed.  net481 net481 was computed. 
MonoAndroid monoandroid monoandroid was computed. 
MonoMac monomac monomac was computed. 
MonoTouch monotouch monotouch was computed. 
Tizen tizen40 tizen40 was computed.  tizen60 tizen60 was computed. 
Xamarin.iOS xamarinios xamarinios was computed. 
Xamarin.Mac xamarinmac xamarinmac was computed. 
Xamarin.TVOS xamarintvos xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Sylvan.Common:

Package Downloads
Sylvan.AspNetCore.Mvc.Csv

Package Description

EgsLib

.Net library for interacting with Empyrion Galactic Survival

Sylvan.AspNetCore.Mvc.Excel

Package Description

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on Sylvan.Common:

Repository Stars
LykosAI/StabilityMatrix
Multi-Platform Package Manager for Stable Diffusion
nietras/Sep
World's Fastest .NET CSV Parser. Modern, minimal, fast, zero allocation, reading and writing of separated values (`csv`, `tsv` etc.). Cross-platform, trimmable and AOT/NativeAOT compatible with blazing fast SIMD vectorized parsing.
Version Downloads Last Updated
0.4.3 167,037 11/2/2023
0.4.2 40,410 4/25/2023
0.4.1 37,804 12/29/2022
0.3.0 51,085 10/30/2021
0.2.1 2,328 1/26/2021
0.2.0 940 9/10/2020
0.1.7 720 5/19/2020
0.1.6 680 5/19/2020
0.1.5 696 5/19/2020
0.1.4 684 5/11/2020
0.1.3 780 4/10/2020
0.1.2 682 4/4/2020
0.1.1 782 4/4/2020
0.1.0 768 12/23/2019