aboutsummaryrefslogtreecommitdiffstats
path: root/slack/slack_api.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2024-01-11 01:29:13 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 12:56:37 +0100
commitbb80ee68763233930a6f4169b07a029cd99b589d (patch)
tree80bba0d394b2e0d40b3464998267d5469cfaaff5 /slack/slack_api.py
parent24e21c91a03f32b43af9178e15df0574256c9ce7 (diff)
downloadwee-slack-bb80ee68763233930a6f4169b07a029cd99b589d.tar.gz
Improve performance of rerender_history for WeeChat >= 4.0.0
Previously each message was rerendered individually. This meant that for each message, we start at the bottom of the buffer and go through all the lines upwards until we find the message. So the lines were looped through a lot of times which was slow. Now we instead go through all the lines once, look up the message for each line and updates it. This is only for >= 4.0.0 since earlier versions may have multiple lines for each message (when the message has multiple lines). That would complicate this way of updating the messages, and I don't think it's worth implementing it when it's only for an old version.
Diffstat (limited to 'slack/slack_api.py')
0 files changed, 0 insertions, 0 deletions