Since python performs slice-to-copy on strings, it means that every time a slice is taken out of a string, a copy of such slice will be made. It will be good to implement a way to avoid duplicating when slicing, at least for the message being processed, since it is the only non length-constant part.
Maybe the class memoryview is what we need.
Since python performs slice-to-copy on strings, it means that every time a slice is taken out of a string, a copy of such slice will be made. It will be good to implement a way to avoid duplicating when slicing, at least for the message being processed, since it is the only non length-constant part.
Maybe the class memoryview is what we need.