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

See original GitHub issue

Hi there. Great lib, but it has really big problems with optimizations on long-range setup (e.g. -100 years, +100 years) because of generateWeekDays. It calls for each month and loads main thread. On a weak device it could take up to 5-10 seconds, which looks not very good. Seems like you need to review this approach. You can find it in Example3 if you set up it like this:

 setup(currentMonth.minusYears(100), currentMonth.plusYears(100), daysOfWeek.first())

Снимок экрана от 2020-07-15 14-40-42 Снимок экрана от 2020-07-15 14-24-08 Снимок экрана от 2020-07-15 14-49-11

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
kizitonwosecommented, Jul 17, 2020

You are right. I have been considering a setupAsync() alternative to the setup() method that basically does the date generation in the background and updates the calendar when ready. Just haven’t got the time to actually implement it. Hopefully this weekend or the next one 🤞.

1reaction
kizitonwosecommented, Jul 26, 2020

Happy to announce that setupAsync is now available in 0.4.1. There are also other async methods for related tasks like updating the start and end months, etc.

Read more comments on GitHub >

github_iconTop Results From Across the Web

9 Examples of a Performance Issue - Simplicable Guide
A performance issue is a failure to meet the basic requirements of a job. They are based on reasonable expectations of behavior and...
Read more >
Dealing with Performance Problems
Types of Performance Problems ; Quantity of work (untimely completion, limited production). Poor prioritizing, timing, scheduling; Lost time ; Quality of work ( ......
Read more >
Handling Performance Issues With Grace | Monster.com
Low Productivity or Late Completion – Make sure you've been clear about the requirements and expectations of the job. · Poor Quality of...
Read more >
Top 5 Common Performance Problems - HRCI
Top 5 Common Performance Problems · Shallow Work · Inability to Prioritize · False Sense of Urgency · Productive Procrastination · Low-Quality Output....
Read more >
5 Common Reasons for Performance Issues (Plus 3 Tips to ...
Most Common Causes of Performance Issues · 1. They lack knowledge or skill. · 2. They have unclear or unrealistic expectations. · 3....
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