Skip to content

xfce4-notifyd is getting slower as notifications log gets bigger

Submitted by bar..@..il.com

Assigned to Simon Steinbeiß @ochosi

Link to original bug (#14865)

Description

Overview: xfce4-notifyd is reading the whole ~/.cache/xfce4/notifyd/log file every time it shows a notification.

Steps to Reproduce: 1) Wait until your ~/.cache/xfce4/notifyd/log file gets very big, for example by sending a lot of notifications in a loop from a script (it reached over 20MB in my case) 2) Run "notify-send Test" command

Actual Results: It takes a noticeable fraction of a second to send a notification (0.2 seconds of more). Running xfce4-notifyd with strace shows that it's reading the whole ~/.cache/xfce4/notifyd/log file, which takes most of that time.

Expected Results: What the application should have done, were the bug not present. Sending notifications shouldn't get slower with bigger notification log.

Version: 0.4.2