Closed PRESFIL closed 2 years ago
I imagine it might have been done for performance reasons as the list of all unicode codepoints is fairly large and doing it with String can be an order of magnitude slower. Whether that's actually a problem in practice, I have no idea. If it is then depending on text would probably be fine I guess.
OK, I updated CHANGES.md
.
On the performance side, I've noticed performance drops in XMonad.Prompt.Man
when doing incremental searches. But there are a lot of man pages (5633 lines in prompt).
Or when using XMonad.Prompt.Zsh
. But the reason is XMonad.Prompt
, it's entirely
writen on String
base, so rewriting it is a separate issue.
Do I have to update the changes according to master in order for this PR to be merged?
Why not merge it?
Sorry, seems like everyone was equally busy with other things :)
On the performance side, I've noticed performance drops in
XMonad.Prompt.Man
when doing incremental searches. But there are a lot of man pages (5633 lines in prompt).Or when using
XMonad.Prompt.Zsh
. But the reason isXMonad.Prompt
, it's entirely writen onString
base, so rewriting it is a separate issue.
You have noticed these performance drops only with this patch applied? Because to me it seems like X.P.Unicode is an extra prompt, not something that interacts with X.P.Man in any way.
I only noticed this in X.P.Man
, it also does use String
and lots of man pages.
It doesn't related with this patch.
I think this is the topic of a separate issue.
Thanks!
:rocket:
This PR changes
X.P.Unicode
string type fromByteString
toString
to support Unicode in descriptions. Closes #733.Description
X.P.Unicode
allows you to work with Emoji in Unicode, but does not allow you to use non-Latin characters in the description of these Emojis.X.P.Unicode
works fine, but cannot display such characters correctly.See how to reproduce in #733.
Chose
String
instead ofText
because I thought it was possible to do without an extra dependency forxmonad-contrib
. The branch is editable if you know how to add support without dropping theByteString
.Checklist
[ ] I've read CONTRIBUTING.md
[x] I've considered how to best test these changes (property, unit, manually, ...) and concluded: XXX
[x] I updated the
CHANGES.md
file