#7214 closed enhancement (fixed)
[PATCH] Heap memory growing and CPU load while idle
Reported by: | akks | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | latest |
Keywords: | memory, performance | Cc: |
Description
I ran JOSM in the profiler and noticed that constant memory allocation takes place, even when user does not move the mouse. Profiler said it is MapStatus.Collector run method, which regularly invokes statusBarElementUpdate => getNearestNodeOrWay, that need relatively much resources.
In this patch statusBarElementUpdate is called only when mouse position have changed. Profiler shows it removes endless "memory growing - garbage collecting" cycle.
This should do small improvement of JOSM behaviour in the background.
Are there any important cases when statusbar info about element under cursor needs to be updated without moving the mouse?
If it is OK, I can try to commit it.
Attachments (1)
Change History (3)
by , 13 years ago
Attachment: | StatusUpdate.patch added |
---|
comment:1 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 13 years ago
Please reopen this ticket if some potential or real problems arise. It is my first commit.
In [4763/josm]: