Package: neovim Version: 0.2.2-3 Severity: normal Dear Maintainer,
I've experienced performance issues when using neovim, particularly when using the plugin airline (https://github.com/vim-airline/vim-airline/). Looking at other performance issues with neovim (eg https://github.com/neovim/neovim/issues/7063) made me realize a common pattern was that it was often built in cmake configuration RelWithDebInfo, which passes the -Og flag as its last optimization flag. I've checked the version of neovim I use (on ubuntu) with `nvim --version` and could confirm that my neovim commandline included -Og as its last optimization flag: Compilation: /usr/bin/cc -g -O2 -fdebug-prefix-map=/build/neovim-_mzR4z/neovim-0.2.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DDISABLE_LOG -Wdate-time -D_FORTIFY_SOURCE=2 -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -O2 -g -DMIN_LOG_LEVEL=3 -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE _GENERATED_DECLARATIONS -D_GNU_SOURCE -I/build/neovim-_mzR4z/neovim-0.2.2/build/config -I/build/neovim-_mzR4z/neovim-0.2.2/src -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/build/neovim-_mzR4z/neovim- 0.2.2/build/src/nvim/auto -I/build/neovim-_mzR4z/neovim-0.2.2/build/include It seems that the neovim ubuntu package is pulled from debian, so I checked that this issue affects the unstable version of the package as well. Running `strings nvim | grep "Og"` on the nvim binary contained in http://ftp.fr.debian.org/debian/pool/main/n/neovim/neovim_0.3.1-2_amd64.deb showed the same -Og appearing on the command line: Compilation: /usr/bin/cc -g -O2 -fdebug-prefix-map=/build/neovim-dgrsaL/neovim-0.3.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DDISABLE_LOG -Wdate-time -D_FORTIFY_SOURCE=2 -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -O2 -g -DMIN_LOG_LEVEL=3 -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wimplicit -fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=auto -Wno-array-bounds -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/build/neovim-dgrsaL/neovim-0.3.1/build/config -I/build/neovim-dgrsaL/neo vim-0.3.1/src -I/usr/include -I/build/neovim-dgrsaL/neovim-0.3.1/build/src/nvim/auto -I/build/neovim-dgrsaL/neovim-0.3.1/build/include Could neovim be compiled with -O2? I hope this would make most of my performance issues disappear. Best regards, Vincent Barrielle -- System Information: Debian Release: buster/sid APT prefers bionic-updates APT policy: (500, 'bionic-updates'), (500, 'bionic-security'), (500, 'bionic'), (100, 'bionic-backports') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.15.0-39-generic (SMP w/12 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE= (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages neovim depends on: ii libc6 2.27-3ubuntu1 ii libjemalloc1 3.6.0-11 ii libluajit-5.1-2 2.1.0~beta3+dfsg-5.1 ii libmsgpackc2 2.1.5-1 ii libtermkey1 0.20-3 ii libunibilium4 2.0.0-2 ii libuv1 1.18.0-3 ii libvterm0 0~bzr715-1 ii neovim-runtime 0.2.2-3 Versions of packages neovim recommends: ii python-neovim 0.2.0-1 ii python3-neovim 0.2.0-1 ii xclip 0.12+svn84-4build1 ii xsel 1.2.0-4 ii xxd 2:8.0.1453-1ubuntu1 Versions of packages neovim suggests: pn ctags <none> pn vim-scripts <none> -- no debconf information

