Menu

bad performance when hiding/displaying all (few) notes

jmi.tnet
2017-04-21
2017-04-21
  • jmi.tnet

    jmi.tnet - 2017-04-21

    Hi,

    I'm trying Pnotes.Net as replacement for Sticky Notes comming with windows, due to single feature: in StickyNotes when i click into single note, all of them come to front. With PN.net only that single one.

    With Pnotes.Net i have terrible user experience, if I want to use feature to show-hide notes.
    I took fresh .zip version, duplicated sample note, so i have 5 copies.
    Configured double click to show/hide all (but same behaviour, if i select these from menu).
    Problem: hiding takes several hundreds millis, showing takes more than a second.
    Same setup with Pnotes (not .net version) is instant.

    During showing notes i realized flickering. It looks like it re-creates all the windows from the scratch, initially displaying them in middle of screen and then resizing/moving them and adding context.

    I also realized, that performance gets like 2-5x better if i move program from raid of normal disks to SSD.

    Expectation: instant hide/show.

    Question 1: why is disk used during hide/show? Why so big difference between SSD and normal disk? Are you doing hundreds of IOs? Would expect no disk operation here. If need to save list of displayed/hidden windows, then single transaction.

    Proposal 1: avoid or at least optimize disk usage during hide/show
    Proposal 2: make it possible to configure to never dispose windows of already displayed.
    Proposal 3: don't show window in middle and then move-resize it. Instead show it after it's fully configured.

    thank you
    best regards
    jano

     
  • oldlamer

    oldlamer - 2017-04-22

    Hi,
    First of all it's clear that PNotes is faster than PNotes.NET, because PNotes is plain pure C, while PNotes.NET is WPF.
    Both scenarios for hiding notes were tested. The case when notes just hide without realy closing and disposing windows brings more problems, than advantages.
    The only IO operation when simple notes is hiding is writinng their "hidden" state into database.
    As for notes' appearance: I've answered this question many times and finally created separate topic in order not to do it again. See here:
    https://sourceforge.net/p/pnotes/discussion/762672/thread/832910c8/

     

Log in to post a comment.