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.

Permanently high CPU utilization after sorting

See original GitHub issue

I’m submitting a … (check one with “x”)

[X] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here

Current behavior

Permanently high cpu utilization after sorting. The utilization will stay high till the tab is reloaded. Also after another sort the cpu utilization will increase permanently (up to 100%). Expected behavior After sorting the cpu utilization should go down to <10%.

Reproduction of the problem Reproducible in your demo, just click sort in the demo, wait a bit or click a bit around. The cpu utilization will remain on a high level.

What is the motivation / use case for changing the behavior? Lags after sorting

Please tell us about your environment:

Arch Linux 4.8.11 Chromium Version 55.0.2883.75 (64-bit) Firefox Version 50.0.2 CPU: i5 2500k@ 4,4Ghz, 24GB of RAM HW Acceleration enabled (Only Native GpuMemoryBuffers and Rasterization HW acceleratiion disabled)

  • Table version: 2.2.0 Version in the current demo (2.2.0)
  • Angular version: 2.3.0 Version in the current demo for version 2.2.0

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
JanCejkacommented, Dec 14, 2016

Issue is probably in the code that adds & removes “sort-desc” / “icon-up” classes on span.sort-btn element. If you inspect this element, it looks like list of classes is “flickering”. If you break on attributes modification of this span element, you would get pretty instant breaks where you see that these two classes are being removed and re-added very fast. I have seen this behavior in version 2.2.1 and it’s present in live demo on http://swimlane.github.io/angular2-data-table/ as well (e.g. Client-side sorting and then clicking on column to sort).

0reactions
Thoma5commented, Dec 17, 2016

Thanks, works fine now!

Read more comments on GitHub >

github_iconTop Results From Across the Web

8 Useful Solutions to Fix Your CPU 100% in Windows 10/11
Reasons for High CPU Usage · 1. Too Many Background Processes. A background process is a program that runs on a PC includes...
Read more >
How to Lower CPU Usage: Common Causes & Tips - N-able
The symptoms of high CPU usage are familiar: the cursor moves jerkily and slowly, and applications begin to lag or shut down.
Read more >
How to Fix High CPU Usage in Windows - MakeUseOf
Open the Task Manager (press Control + Shift + ESC), switch to the Services tab, and sort all running services by PID, i.e.,...
Read more >
How to Fix High CPU Usage (with Pictures) - wikiHow
1. Press .Ctrl+ Shift+Esc to open the Task Manager. This is a utility that monitors and reports on all of the processes and...
Read more >
Troubleshoot high-CPU-usage issues in SQL Server
If % User Time is consistently greater than 90 percent, the SQL Server process is causing high CPU usage. However, if % Privileged...
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