← Back to team overview

zim-wiki team mailing list archive

Re: profiling zim for performance?

 

On 12/30/2017 03:40 PM, Stephen LARROQUE wrote:
This is most likely a memory sink issue if it becomes more sluggish over time. Valgrind can be used to profile memory and garbage collection, or since zim is a python program you can also use the memory_profiler module.

Thanks for the suggestion, but it's the CPU that spikes when I change pages, not the memory.

But note that i never experienced such an issue (but i leave zim open max for 1d,then i don't fear closing since it memorizes cursor position and documents history). Maybe it's the fault of a plugin?

I suppose it's possible that the tray icon plugin is responsible, but I don't think it's likely.

Le Sam. 30 Déc. 2017 05:53, Nathaniel Beaver <nathanielmbeaver@xxxxxxxxx <mailto:nathanielmbeaver@xxxxxxxxx>> a écrit :

    When I first launch Zim, it is quite snappy. However, after it's been
    running a while, opening even the smallest pages becomes sluggish.

    What would be a good method of profiling Zim's performance to help
    understand this behavior?

    I've tried using `strace', but it just shows Zim is polling a lot, and
    I'm not sure how to interpret the results.

    I am using Zim 0.65-4 on Debian Stretch and have also verified the same
    slowdown on the latest Github version (0.67, SHA1 is
    7a373a788194c36723bd0eed600291e513de9396).

    I have not enabled any plugins besides the tray icon.


    Nathaniel Beaver

    _______________________________________________
    Mailing list: https://launchpad.net/~zim-wiki
    <https://launchpad.net/%7Ezim-wiki>
    Post to     : zim-wiki@xxxxxxxxxxxxxxxxxxx
    <mailto:zim-wiki@xxxxxxxxxxxxxxxxxxx>
    Unsubscribe : https://launchpad.net/~zim-wiki
    <https://launchpad.net/%7Ezim-wiki>
    More help   : https://help.launchpad.net/ListHelp



Follow ups

References