diff options
author | louiz’ <louiz@louiz.org> | 2016-07-06 09:26:03 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2016-07-06 09:26:03 +0200 |
commit | e397f38b47ae16364bf4345e59ad8b6b0703aa5b (patch) | |
tree | 6c15fd2f7b85df0595f1243e29b02c1f359c7a21 /poezio/theming.py | |
parent | 409b1513ce83e114235c33079fa67623c7843f7e (diff) | |
parent | 69b4480e9e6ff578b880b7d8089616bc68e60f71 (diff) | |
download | poezio-e397f38b47ae16364bf4345e59ad8b6b0703aa5b.tar.gz poezio-e397f38b47ae16364bf4345e59ad8b6b0703aa5b.tar.bz2 poezio-e397f38b47ae16364bf4345e59ad8b6b0703aa5b.tar.xz poezio-e397f38b47ae16364bf4345e59ad8b6b0703aa5b.zip |
Merge remote-tracking branch 'linkmauve/big-performances-improvement'
Diffstat (limited to 'poezio/theming.py')
-rwxr-xr-x | poezio/theming.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/poezio/theming.py b/poezio/theming.py index 5b2546d7..0ead632e 100755 --- a/poezio/theming.py +++ b/poezio/theming.py @@ -69,6 +69,7 @@ log = logging.getLogger(__name__) from poezio.config import config import curses +import functools import os from os import path @@ -403,6 +404,7 @@ def read_tuple(_str): char = attrs[2] if len(attrs) > 2 else '\0' return (int(attrs[0]), int(attrs[1])), char +@functools.lru_cache(maxsize=128) def to_curses_attr(color_tuple): """ Takes a color tuple (as defined at the top of this file) and |