Package: dialog Version: 1.0-20050206-1 Severity: minor
To reproduce the problem set LC_ALL to some locale (not C or POSIX) and execute: dialog --menu text 0 0 0 $(seq 1 1000) Scroll down by pressing the down arrow key. The scrolling is extremely slow and consumes a lot of CPU. Increase the "1000" in the command to see the effect better. It seems that the cache_list in the inputstr.c module scales very badly. Below is a part of the gprof output: Each sample counts as 0.01 seconds. % cumulative self self total time seconds seconds calls s/call s/call name 51.35 126.42 126.42 45341 0.00 0.00 load_cache 48.37 245.49 119.07 45341 0.00 0.00 save_cache -- System Information: Debian Release: 3.1 APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.9 Locale: LANG=C, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8) Versions of packages dialog depends on: ii debianutils 2.11.2 Miscellaneous utilities specific t ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an ii libncursesw5 5.4-4 Shared libraries for terminal hand -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]