Closed akru closed 7 years ago
String
and ByteString
are not at all interchangeable. But if you replace ByteString
with Text
you probably have a point. However, I have neither the time nor inclination to make this sort of pervasive change. The haxr
codebase is very old (from 2003) and was written (not by me) long before ByteString
or Text
even existed.
Have you run into any specific performance issues with haxr
, or is this just a general observation?
I want to use haxr
for project but a lot of .toString
wrappers not looks good.
The legacy code is good explanation of my question, thank you.
What do you think about difficulty of migration? Maybe I can do it.
I really have no idea. I think it would probably be a lot of work.
Some functions use
String
type as argument for parsing XML-RPC request/response, e.g.or
so, may be lazy
ByteString
type do have best performance for this?