question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Performance issue with task["depends"]

See original GitHub issue

Looking up the dependencies of some tasks lakes much longer than loading the tasks. This causes some noticeable lag in the new version of vit, a taskmanager front end. See https://github.com/scottkosty/vit/issues/216 for the related issue.

I’ve wrote a script to illustrate the problem: tasklib.zip It creates one base task and 40 tasks that depend on it. In the first loop it just iterates over the tasks and converts them to their string representation. The second loop retrieves the id of the depends.

The result looks like this on my machine:

loop1 time: 0.015522241592407227  tasks: 41
loop2 time: 0.33356642723083496  tasks: 41

Retrieving the id of the depends takes about 20x as long as loading the tasks. I suppose this is because of LazyUUIDTaskSet which looks up the base task by its UUID 40 times. Is there an easy way to improve this?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
thomasrebelecommented, Jan 26, 2020

Yes, the LRU cache fixes the performance problem. Thank you for adding it!

0reactions
robgoldingcommented, Jan 24, 2020

@thomasrebele @thehunmonkgroup I’ve released version 2.1.1 which includes a performance enhancement that should fix this issue. Please give it a go!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why Performance Issues Happen And How To Solve Them
It depends on their representation of the task, and also on their own individual goals for career advancement or work-life balance.
Read more >
[task manager] spammy generic "performance issue" message ...
Trying to do an easy repro of this. We've seen these symptoms when tasks have failed - a recurring task (lens_telemetry) and a...
Read more >
UNDERSTANDING TASK DEPENDENCIES IN PROJECT ...
All tasks in a project are connected and will be dependent on one another. Discover how to enhance your visualization of your tasks...
Read more >
Mechanisms underlying dependencies of performance on ...
In choice reaction time tasks, response times and error rates demonstrate differential dependencies on the identities of up to four stimuli preceding the...
Read more >
PPM performance issues - ServiceNow Community
The performance to EDIT any Tasks, Dependencies, any data elements, is below acceptable range. At times, it takes us , over 10mins just...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found