On 5/1/17 2:55 PM, Eliot Miranda wrote:
Alas no. The problem with String's subclasses is that they're binary objects. They have no inst vars in which one can cache a hash.
I see. That suggests a deeper refactoring, of course, to separate the vector of bytes from the rest of the instance, at least in some cases. It'd be a lot of design and implementation work.