elementary / elementary/panel-datetime

Performance problem

Open
#235 2 comments 0 reactions 0 assignees View on GitHub
Status: Confirmed
Dominant language
Vala
Stars
31
Forks
18
Avg merge
2h 29m
Merged PRs (30d)
2

Description

after adding PR (#232), I noticed a few bugs
1. when scrolling through months, if you go far enough (for example, in 1999), you notice increased memory consumption

![screen1](https://user-images.githubusercontent.com/15650716/95435942-e6930200-095b-11eb-8f54-c0aa457785a3.png)

this is because the array of months is not cleared. after closing the widget, everything remains in memory.

2. when switching to a new month, a lot of unnecessary actions are performed.

![screen2](https://user-images.githubusercontent.com/15650716/95436391-72a52980-095c-11eb-8811-b57ce4ddf812.png)

The calendar model changes 4 times (per iteration), each time it completely redraws everything related to events.

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/93683360-performance-problem?utm_campaign=plugin&utm_content=tracker%2F57456330&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F57456330&utm_medium=issues&utm_source=github).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.