stream_xlate(Data, Map) and stream_xlate(Data, Map, Filter)
- Translate bytes of a stream (e.g., downcase)
- Data is the binary
- Map is a 256-byte binary used for lookup translations
- Filter is a 256-byte binary used to eliminate translations
- Yields a copy of Data with all or some bytes replaced from Map
- Performance
- Handled 1.05B bytes whereas bit-syntax handled less than 50M bytes
- stream_xlate/3 was 70x faster; stream_xlate/2 was 250x faster
- HiPE compiling worked in this case, providing a 10% speed up over non-HiPE