Skip to content

VIRA-253: slow performance #58

Open
@chinwobble

Description

@chinwobble

As a user, I don't want an open VIRA report to be slow and I don't want each report to take a long time to load.

I suspect something is wrong with the async code.

I'm going to put a few examples of how to profile the python and vim code.

  • Override timeout for async updates
  • Error after message and issue create (VIRA-247) [d846711]
    • c03487c was the last good one?!?
      • leads to menu layout again...
    • OoO demands tabs win...
    • I got "lucky" and had seen a flash that a second .vira_prompt is open on the fly and we need strings and numbers to work properly
    • One more test
    • I will need to go through the list again. This appears to fix the menus but I lost the fix for it.
  • Fold lost (VIRA-221) [31c6fec]
  • Refresh report goes blank (VIRA-213) [627b6c4]

profile python code

function! vira#_print_report(list) " {{{2
  " Write report output into buffer
  python3 << EOF
import vim
import cProfile
with cProfile.Profile() as pr:
  report = Vira.api.get_report().splitlines()
  vim.current.buffer.append(report)
pr.dump_stats('/tmp/vira_print_report.dmp')

EOF
endfunction

Then i use snakeviz to check the results.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions