Is `Vector{UInt8}(string)` the fastest way to convert String to bytes?

No, creating any kind of wrapper object will be slower. Besides, a bitarray doesn’t give you anything that accessing the raw bytes doesn’t, so I’m not sure what you’re hoping to gain here.