linuxmint / xed

X-Apps [Text] Editor (Cross-DE, backward-compatible, GTK3, traditional UI)
GNU General Public License v2.0
454 stars 85 forks source link

Opening large XML file is slow (at least much slower than NotepadQQ) #560

Open KAMI911 opened 1 year ago

KAMI911 commented 1 year ago
 * Xed version (xed --version)
xed - Version 3.2.7
 * Distribution - (Mint 17.2, Arch, Fedora 25, etc...)
NAME="Linux Mint"
VERSION="21 (Vanessa)"
ID=linuxmint
ID_LIKE="ubuntu debian"
PRETTY_NAME="Linux Mint 21"
VERSION_ID="21"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.linuxmint.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=vanessa
UBUNTU_CODENAME=jammy

Issue Opening large (12Mb) XML file is slow, much slower than NotepadQQ. Here is an example file to reproduce: http://httpmegosztas.posta.hu/PartnerExtra/Out/StreetNames.xml

Steps to reproduce Download the file Open the file in Xed That is slow

Expected behaviour Open file should be snappy

Other information

System:
  Host: mint Kernel: 5.17.15-051715-generic x86_64 bits: 64
    Desktop: Cinnamon 5.4.12 Distro: Linux Mint 21 Vanessa
Machine:
  Type: Laptop System: Dell product: Latitude E6440 v: 00
    serial: <superuser required>
  Mobo: Dell model: 02P3T1 v: A00 serial: <superuser required> UEFI: Dell
    v: A21 date: 02/01/2018
Battery:
  ID-1: BAT0 charge: 12.0 Wh (16.8%) condition: 71.5/99.9 Wh (71.6%)
CPU:
  Info: quad core model: Intel Core i7-4700MQ bits: 64 type: MT MCP cache:
    L2: 1024 KiB
  Speed (MHz): avg: 3077 min/max: 800/3400 cores: 1: 3237 2: 3381 3: 3074
    4: 2862 5: 2984 6: 3280 7: 2938 8: 2861
Graphics:
  Device-1: Intel 4th Gen Core Processor Integrated Graphics driver: i915
    v: kernel
  Device-2: AMD Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 M430 Radeon
    520 Mobile]
    driver: amdgpu v: kernel
  Device-3: Microdia Laptop_Integrated_Webcam_HD type: USB driver: uvcvideo
  Display: x11 server: X.Org v: 1.21.1.3 driver: X:
    loaded: amdgpu,ati,modesetting unloaded: fbdev,vesa gpu: i915
    resolution: 1600x900~60Hz
  OpenGL: renderer: Mesa Intel HD Graphics 4600 (HSW GT2)
    v: 4.6 Mesa 22.0.5
Drives:
  Local Storage: total: raw: 2.05 TiB usable: 3.81 TiB used: 1.6 TiB (42.0%)
  ID-1: /dev/sda vendor: Samsung model: SSD 860 EVO 2TB size: 1.82 TiB
haarp commented 1 year ago

Could be related to #174. Basically anything that doesn't have frequent newlines sprinkled throughout it will make gedit, Pluma and xed go haywire with CPU usage, usually requiring it to be killed.

terr72 commented 10 months ago

Just came across the same issue with syslogs in the 20-30MB range. It's unbearable slow (15-20s) when the progress bar comes up, just like loading something from a floppy drive back in the day. There must be a really bad implementation in the process, that hogs even modern CPUs for something simply like display text.