Giter Club home page Giter Club logo

Comments (7)

MeanEYE avatar MeanEYE commented on August 28, 2024

I do realize this is an old version, before this project existed, but reporting on old repository will not result in any fixes and since the code base for the most part is the same, I thought this might be relevant.

from nheko.

redsky17 avatar redsky17 commented on August 28, 2024

Are you noticing this when switching back and forth from the same two chats, or when switching between various other chats? nheko has some built-in caching of messages to prevent the need to re-request them from the server all the time. I just want to verify what you mean by the 'Switch between two chats for a while' portion of the issue.

from nheko.

MeanEYE avatar MeanEYE commented on August 28, 2024

I tested with same two chats as that way it's easier to replicate the behavior and can't be attributed to just loading new history into memory.

Example before test, with both top chats loaded once:
image

After switching between the top two chats 10+ times:
image

from nheko.

MeanEYE avatar MeanEYE commented on August 28, 2024

Please note that here difference is not as drastic as in some previous cases I ran into this issues. This might be something to do with the fact I restarted application before testing so that other chats don't affect the outcome.

If the application has longer uptime, I think results should be more drastic. However I don't have images of this, but I can test for that if you wish.

from nheko.

redsky17 avatar redsky17 commented on August 28, 2024

Is there any chance you can run valgrind on nheko while you're doing this, and share the output file with me? I did this on my end, but wasn't able to see any memory leaks after a few minutes of switching back and forth.

This command should be sufficient:

valgrind --leak-check=full --show-leak-kinds=all /path/to/nheko

Nheko does run much slower under valgrind, just as an fyi.

If you can't run valgrind, let me know.

from nheko.

MeanEYE avatar MeanEYE commented on August 28, 2024

nheko-report.txt

Here it is.

from nheko.

deepbluev7 avatar deepbluev7 commented on August 28, 2024

I think this shouldn't be an issue anymore, since before we used widgets for the timeline, that were never freed. Now we use qml to dynamically generate the timeline view, which uses a bit of memory for caches, but should have an upper limit (apart from all the messages still being kept in memory, as we don't drop them from the in memory cache. That overhead should be reasonably minimal and should go away, once we actually use a proper disk cache for all messages in the future.)

from nheko.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.