Extremely High CPU usage on big files

Bug #1200200 reported by marianitn
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Scratch
Fix Released
Medium
Corentin Noël

Bug Description

When opening a ~5000 lines csv file, the process /usr/share/scratch/scripts/chardetect.py takes 100% CPU usage for a while. And the same happens again if I resize the window.

I'm running scratch 2.0~r1125-0+pkg47~precise1

Related branches

marianitn (marianitn)
summary: - CPU goes 100% opening big csv file
+ CPU goes 100% opening csv file
Revision history for this message
Otto Robba (otto-ottorobba) wrote : Re: CPU goes 100% opening csv file

Confirmed: spike is noticeable when resizing (and scrolling) long files.

Changed in scratch:
status: New → Confirmed
summary: - CPU goes 100% opening csv file
+ Extremely High CPU usage on big files
Revision history for this message
Hackabot (hackabot) wrote :

While in gedit the same file could take around 5-6% CPU usage to open

Cody Garver (codygarver)
Changed in scratch:
importance: Undecided → Medium
milestone: none → freya-rc1
Revision history for this message
Cody Garver (codygarver) wrote :

Meant to add this to freya+1 milestone

Changed in scratch:
milestone: freya-rc1 → loki-beta1
Changed in scratch:
status: Confirmed → In Progress
assignee: nobody → Corentin Noël (tintou)
Changed in scratch:
status: In Progress → Fix Committed
milestone: loki-beta1 → freya-rc1
Cody Garver (codygarver)
Changed in scratch:
milestone: freya-rc1 → 2.1
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.