What string operations do you need to perform that you couldn’t easily do with a Vector{UInt8}
? Probably it wouldn’t be hard to define a new AbstractString
type that supports the operations you need and wraps an mmapped array.
(Doing so with the built-in String
type would require more low-level plumbing changes.)