[GH-ISSUE #2493] Refactor branch is just generally ungodly slow #1236

Closed
opened 2026-10-21 05:29:34 +07:00 by bsakaguchi · 6 comments
Owner

Originally created by @WhatsUpJerks on GitHub (Jun 6, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2493

Summary

This one is going to be hard to troubleshoot... but basically clicking around through the UI and using the tool normally is just slow as hell. Like clicking on a conversation to load it takes 5-10 seconds, sometimes longer.

Sending a message results in a 20-30 second delay before the LLM is even invoked.

After a message is received in conversation mode, the "generating" button just sits there while the LLM is completely idle and the message has been displayed while logs scroll through on the backend about storage list/get. Same goes for regenerating a message.

Expected behavior

Reasonable responsiveness.

Actual behavior

Slow.

Steps to reproduce

  1. Use the tool

Environment

  • Marinara Engine version: Refactor branch
  • Install type: (source / installer / docker / termux / other) source
  • OS + version: Win 11
  • Browser or app shell: browser

Logs, screenshots, or video

I'll just confirm the obvious: I am not resource-limited in any way on my PC -- plenty of RAM/CPU available and idle. No excessive disk IO. Everything is nice and quiet.

an example of some of the timings i'm seeing. these aren't timestamped so they can't show the period that elapsed BETWEEN some of the events, but you get the idea.

llm_stream 0fd512b6-3df1-4e46-b682-ac82e5f86f77 started
invoke storage_list started
invoke storage_list ok in 18ms
llm_stream 0fd512b6-3df1-4e46-b682-ac82e5f86f77 ok in 10652ms
invoke storage_list started
invoke storage_list ok in 0ms
invoke chat_message_add_swipe started
invoke storage_list started
invoke storage_list ok in 0ms
invoke storage_get started
invoke storage_get ok in 5624ms
invoke storage_list started
invoke storage_list ok in 0ms
invoke storage_get started
invoke storage_get ok in 1ms
invoke storage_list started
invoke storage_list ok in 42ms
invoke storage_list started
invoke storage_list ok in 42ms
invoke chat_message_add_swipe ok in 16295ms

Additional context

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • [] I DID NOT read this template and provide the requested details.
Originally created by @WhatsUpJerks on GitHub (Jun 6, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2493 ## Summary <!-- What is wrong in one or two sentences? --> This one is going to be hard to troubleshoot... but basically clicking around through the UI and using the tool normally is just slow as hell. Like clicking on a conversation to load it takes 5-10 seconds, sometimes longer. Sending a message results in a 20-30 second delay before the LLM is even invoked. After a message is received in conversation mode, the "generating" button just sits there while the LLM is completely idle and the message has been displayed while logs scroll through on the backend about storage list/get. Same goes for regenerating a message. ## Expected behavior <!-- What should have happened? --> Reasonable responsiveness. ## Actual behavior <!-- What happened instead? --> Slow. ## Steps to reproduce 1. Use the tool 2. 3. ## Environment - Marinara Engine version: Refactor branch - Install type: (source / installer / docker / termux / other) source - OS + version: Win 11 - Browser or app shell: browser ## Logs, screenshots, or video <!-- Paste relevant logs and add screenshots when possible --> I'll just confirm the obvious: I am not resource-limited in any way on my PC -- plenty of RAM/CPU available and idle. No excessive disk IO. Everything is nice and quiet. an example of some of the timings i'm seeing. these aren't timestamped so they can't show the period that elapsed BETWEEN some of the events, but you get the idea. >>> llm_stream 0fd512b6-3df1-4e46-b682-ac82e5f86f77 started invoke storage_list started invoke storage_list ok in 18ms llm_stream 0fd512b6-3df1-4e46-b682-ac82e5f86f77 ok in 10652ms invoke storage_list started invoke storage_list ok in 0ms invoke chat_message_add_swipe started invoke storage_list started invoke storage_list ok in 0ms invoke storage_get started invoke storage_get ok in 5624ms invoke storage_list started invoke storage_list ok in 0ms invoke storage_get started invoke storage_get ok in 1ms invoke storage_list started invoke storage_list ok in 42ms invoke storage_list started invoke storage_list ok in 42ms invoke chat_message_add_swipe ok in 16295ms >>> ## Additional context <!-- Optional: related issue links, temporary workaround, etc. --> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:29:34 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@Promansis commented on GitHub (Jun 6, 2026):

Yeah, we're aware of this one. Can you check some things for me please?

  1. How many characters you have loaded on the app?
  2. What sorta character card image sizes/formats are the biggest you have/how many are large sizes?
  3. How many chats do you have (in left hand panel)
  4. How many messages in the ones that are taking an obscene amount of time to load?
  5. These last 2 are a bit edge case-y: Have you always had the devtools open while testing the app, and does it improve if you close it? And does navigation improve if you don't have any of the side panels open?

Thanks!

<!-- gh-comment-id:4638947660 --> @Promansis commented on GitHub (Jun 6, 2026): Yeah, we're aware of this one. Can you check some things for me please? 1. How many characters you have loaded on the app? 2. What sorta character card image sizes/formats are the biggest you have/how many are large sizes? 3. How many chats do you have (in left hand panel) 4. How many messages in the ones that are taking an obscene amount of time to load? 5. These last 2 are a bit edge case-y: Have you always had the devtools open while testing the app, and does it improve if you close it? And does navigation improve if you don't have any of the side panels open? Thanks!
Author
Owner

@WhatsUpJerks commented on GitHub (Jun 6, 2026):

Yeah, we're aware of this one. Can you check some things for me please?

  1. How many characters you have loaded on the app?
  2. What sorta character card image sizes/formats are the biggest you have/how many are large sizes?
  3. How many chats do you have (in left hand panel)
  4. How many messages in the ones that are taking an obscene amount of time to load?
  5. These last 2 are a bit edge case-y: Have you always had the devtools open while testing the app, and does it improve if you close it? And does navigation improve if you don't have any of the side panels open?

Thanks!

Awesome, I figured it as a known issue but I wanted to raise it just in case.

  1. around 40 characters
  2. not many and not big. some of them are imported from third party sources but most of my cards don't have images at all
  3. maybe 10-11
  4. even short chats with like 10-20 messages take 5-10 seconds. longer ones with hundreds will take a few seconds longer
  5. a. no devtools. i'm running the web front end because i don't like the standalone app, i prefer a browser. b. maybe a bit improved?

It seems like once a conversation is initially loaded reloading it is pretty fast, but sometimes it craters and goes back to a real slow load (caching, i'm assuming)

<!-- gh-comment-id:4639072724 --> @WhatsUpJerks commented on GitHub (Jun 6, 2026): > Yeah, we're aware of this one. Can you check some things for me please? > > 1. How many characters you have loaded on the app? > 2. What sorta character card image sizes/formats are the biggest you have/how many are large sizes? > 3. How many chats do you have (in left hand panel) > 4. How many messages in the ones that are taking an obscene amount of time to load? > 5. These last 2 are a bit edge case-y: Have you always had the devtools open while testing the app, and does it improve if you close it? And does navigation improve if you don't have any of the side panels open? > > Thanks! Awesome, I figured it as a known issue but I wanted to raise it just in case. 1. around 40 characters 2. not many and not big. some of them are imported from third party sources but most of my cards don't have images at all 3. maybe 10-11 4. even short chats with like 10-20 messages take 5-10 seconds. longer ones with hundreds will take a few seconds longer 5. a. no devtools. i'm running the web front end because i don't like the standalone app, i prefer a browser. b. maybe a bit improved? It seems like once a conversation is initially loaded reloading it is pretty fast, but sometimes it craters and goes back to a real slow load (caching, i'm assuming)
Author
Owner

@Promansis commented on GitHub (Jun 6, 2026):

Ah, that might be the issue. With the refactor, try launching with 'pnpm dev tauri'

It's still not optimised 100% yet, working on it. But it's not 16 seconds bad haha.

<!-- gh-comment-id:4639096476 --> @Promansis commented on GitHub (Jun 6, 2026): Ah, that might be the issue. With the refactor, try launching with 'pnpm dev tauri' It's still not optimised 100% yet, working on it. But it's not 16 seconds bad haha.
Author
Owner

@WhatsUpJerks commented on GitHub (Jun 6, 2026):

Ah, that might be the issue. With the refactor, try launching with 'pnpm dev tauri'

It's still not optimised 100% yet, working on it. But it's not 16 seconds bad haha.

I've tried the desktop app, I just don't like it. I don't want to be a dick and I'm sure you're working on improving performance across the board but if the answer is going to be "the web app is going to be ungodly slow sorry" then don't bother investing engineering effort in it and just drop it entirely. If that's an interim solution while you all get down to across the board optimization, then I withdraw my dickish comment in advance.

<!-- gh-comment-id:4639271780 --> @WhatsUpJerks commented on GitHub (Jun 6, 2026): > Ah, that might be the issue. With the refactor, try launching with 'pnpm dev tauri' > > It's still not optimised 100% yet, working on it. But it's not 16 seconds bad haha. I've tried the desktop app, I just don't like it. I don't want to be a dick and I'm sure you're working on improving performance across the board but if the answer is going to be "the web app is going to be ungodly slow sorry" then don't bother investing engineering effort in it and just drop it entirely. If that's an interim solution while you all get down to across the board optimization, then I withdraw my dickish comment in advance.
Author
Owner

@SpicyMarinara commented on GitHub (Jun 6, 2026):

No need to be a dick about our work that, mind you, is done completely for free. The reason we're swapping to being application-based is that we want to release a proper mobile app. Don't like it, don't use it, plenty of other great browser-based frontends are out there.

<!-- gh-comment-id:4639983296 --> @SpicyMarinara commented on GitHub (Jun 6, 2026): No need to be a dick about our work that, mind you, is done completely for free. The reason we're swapping to being application-based is that we want to release a proper mobile app. Don't like it, don't use it, plenty of other great browser-based frontends are out there.
Author
Owner

@WhatsUpJerks commented on GitHub (Jun 6, 2026):

@SpicyMarinara Just want to clarify because I wasn't received clearly: I love the project and appreciate the tremendous amount of work that's going into it on behalf of the community by you and the other contributors. I was being a little snarky and meant no offense. And this isn't after-the-fact backpedaling. My apologies if there was offense taken.

<!-- gh-comment-id:4640184050 --> @WhatsUpJerks commented on GitHub (Jun 6, 2026): @SpicyMarinara Just want to clarify because I wasn't received clearly: I *love* the project and appreciate the tremendous amount of work that's going into it on behalf of the community by you and the other contributors. I was being a little snarky and meant no offense. And this isn't after-the-fact backpedaling. My apologies if there was offense taken.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#1236
No description provided.