#1618·superfile

superfile uses huge chunk of memory if navigating through folder with huge files

Author: anishkn04Created Aug 6, 2026Updated Aug 7, 2026
Labelsbug

Describe the bug When navigating in a folder which has files of huge size, spf occupies large amount of memory. This does not happen on v1.5.0; it appears only on v1.6.0. I have a folder with many movies stored ( 1.7 - 3 Gb each). When I navigate within that folder reasonably fast, spf starts occupying huge amount of memory Right after scrolling through 4-5 movies:

top
  PID   USER PR NI  VIRT  RES  SHR  S %CPU  %MEM  TIME+  COMMAND
  25620 user 20 0 7386640 3.9g 8540 S 173.3 52.1 0:10.93 spf

To Reproduce Steps to reproduce the behavior:

  1. Go to 'a folder with 3/4+ files with large size (1.5/2 Gb+)'
  2. After you reach the folder, scroll reasonably fast through the files.
  3. Check memory, spf has already occupied a lot of it.

Expected behavior spf shouldn't occupy large amount of memory (3/4Gb+).

Additional context / probable cause

  • Reproduced on v1.6.0.
  • Does not reproduce on v1.5.0.
  • Disabling the following config options does not prevent the issue:
    • metadata = false
    • default_open_file_preview = false
    • show_image_preview = false
    • enable_md5_checksum = false I assume this is due to the binary architecture detection introduced in #1328

Screenshots I don't have a screenshot but here's a copy from top:

Right after scrolling through 4–5 large movies: VIRT ~7.4g RES 3.9g %CPU 173 %MEM 52 textAfter staying on one ~2 GB file a bit longer: VIRT 14.9g RES 4.2g %CPU 33 %MEM 56

System information (please complete the following information): Superfile Version : v1.6.0

System OS : linux Arch : amd64 Kernel : 7.1.4-arch1-1

Configuration Config File : /home/user/.config/superfile/config.toml Hotkeys File : /home/user/.config/superfile/hotkeys.toml Theme Folder : /home/user/.config/superfile/theme Log File : /home/user/.local/state/superfile/superfile.log Data Dir : /home/user/.local/share/superfile

Environment TERM : xterm-kitty TERM_PROGRAM : Not Set TERM_PROGRAM_VERSION: Not Set SHELL : /usr/bin/zsh EDITOR : nvim VISUAL : Not Set XDG_SESSION_TYPE : wayland WAYLAND_DISPLAY : wayland-1 DISPLAY : :0

Dependencies ffmpeg : ffmpeg version n8.1.2 Copyright (c) 2000-2026 the ... pdftoppm : pdftoppm version 26.07.0 exiftool : 13.55 bat : bat 0.26.1 (v0.25.0-402-g979ba226) zoxide : zoxide 0.10.0 xdg-open : xdg-open 1.2.1 wl-copy : wl-clipboard 2.3.0 xclip : Not Found xsel : Not Found