Sample of optimizing simple guid to efficient string transformer.
Efficient string is a string that represents a guid in user friendly format. For example,
- Convert GUID to Base64.
- Replace '/' with '-' (To make it works in url string)
- Replace '+' with '_' (To make it works in url string)
- Remove the tailing '=' characters (Because length of our guid is always constant and we can return it back while transforming from string to guid)
- GuidTransformer.Benchmark - Console application with benchmarking. (non-)/zero allocation solutions.
- GuidTransformer.Console - Console application with example.