Mousepad daemon mode with timer

Nick Schermer nickschermer at
Thu May 10 00:04:16 CEST 2007

2007/5/9, Brian J. Tarricone <bjt23 at>:
> Have you profiled startup with something like oprofile?  There might be
> ways to improve startup time even with the new features.  And maybe you
> can even defer initialisation for some of the new stuff (that maybe
> isn't critical on startup) in an idle handler so startup 'feels' faster.

Yes I did a bit... but those things take quite some time and I don't
really have that ATM. Some of the things that can be delayed (recent
history for example) are already generated with an idle timer.

I'm not saying there is nothing that can be optimized to improve the
startup time, it's just that the new Mousepad has more widgets to
show, so it's hard to compete with, for example, leafpad that only
draws a textview.

> I'm a bit skeptical of some sort of daemon mode.  Five minutes is
> pretty arbitrary: I know for my use of Mousepad, daemon mode is
> useless: I generally start new instances up way more than five minutes
> apart.  There's almost no way of finding a number that makes it useful
> for everyone without wasting RAM with a process that isn't used often.
> I'd say profile, profile, profile, and then optimise as much as you can.

I will profile the hack out of it, don't worry ^_^. Just though this
might be a good idea to speed up the short-term work without wasting
memory (for a longer time).


More information about the Xfce4-dev mailing list