[xmonad] Migrate from String to Data.Text [proposal]
Brandon Allbery
allbery.b at gmail.com
Fri Dec 18 17:17:44 UTC 2015
On Fri, Dec 18, 2015 at 12:12 PM, Matt Walker <matt.g.d.walker at gmail.com>
wrote:
> The long and the short of it is that [Char] is a suboptimal choice to use
> for anything except possibly short identifiers
Almost all uses of String in xmonad are very short; if not, you're likely
doing something wrong. (The exception is the help text which does not need
to be optimal, and is simply output as is in what amounts to the most
optimal use case for lists. Meanwhile the overhead of Text is significant
for very short strings such as xmonad uses. Use of Text in this case is a
pessimization.
It would be on you to demonstrate that switching to Text is a net gain.
--
brandon s allbery kf8nh sine nomine associates
allbery.b at gmail.com ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/xmonad/attachments/20151218/74e02649/attachment-0001.html>
More information about the xmonad
mailing list