Skip to content

High memory usage - possible leak? #81

@negz

Description

@negz

I recently started using Neovim, and really like this plugin. Unfortunately I suspect it's causing Neovim to use a lot of memory, and eventually become sluggish.

Here's my configuration: https://github.com/negz/nix/blob/1a26d91/users/negz/nvim/codewindow.lua. I'm using Neovim v0.11 and commit dd70176 of this plugin.

I find that if I:

  1. Open nvim at the root of a clone of https://github.com/crossplane/crossplane/
  2. Open some ~1,500 line files
  3. Toggle my window's open buffer back and forth between two of the large files

I'll see nvim RSS memory increase by 1-2 MB each time I toggle between the buffers. This is true even if there's no changes since last time I viewed the buffer. The memory usage doesn't seem to drop if I :bdelete a buffer.

I tested primarily by toggling between these two files:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions