Overview of ByteString types and usage
masterThe bytestring library provides efficient, packed byte arrays that can be manipulated as strings. It offers three primary modules depending on your data requirements:
Data.ByteString: Provides strict byte arrays for efficient string and IO operations.Data.ByteString.Lazy: Provides a lazy list of bytestring chunks. Use this for very large data requirements (multi-gigabyte) or when you have strict constraints on heap size.Data.ByteString.Builder: Designed for the efficient construction ofByteStringvalues from smaller pieces, specifically useful during binary serialization.