Text Input and Output boxes often become quite laggy
under review
Sam
Quite often I get the feeling that BoltAI is a little sluggish to use, I've narrowed this down to the text input and output boxes which seems to have quite a performance overhead.
I know there's been a few other bug reports about the text fields however they seemed to be mostly specific issues, so I thought I'd provide some more general observations.
I could be wrong - but I swear it seems to feel slower when I have it on a higher resolution screen.
I don't know Swift at all but this makes me wonder if something is not right with how it's rendering text or text fields or if the UI is having to dynamically recalculate something about itself that it shouldn't (e.g. re-drawing the text window for each update or calculating the relative window sizes etc..)
Is there a way to capture a performance snapshot of the app to have a look for high latency calls?
Daniel Nguyen
under review
Render large amount of text is hard. I'm not 100% sure yet but thanks for the input. I will try to test this with a higher screen resolution.
Sam
Daniel Nguyen Feel free to hit me up with any beta builds to test for you if it helps :)
Sam
By chance it's not doing sync writes to it's database on each conversation draw / update is it?
I wonder if the performance is any different when running the sqlite db from memory rather than filesystem.
I opened up the db.sqlite3 DB in DB Browser for SQLite and noticed that although I deleted all conversations - the database still contains 12.5MB of data and the messages table still contains all the deleted messages!
After backing up the db, I deleted the message contents and the binary blobs in messages_fts_data and vacuumed the DB and it's back down to 328KB, it certainly feels a little more snappy.
Daniel Nguyen
Sam: Make sure you deleted all the chats, including "inline" chats.
There might be a bug on the app where I don't use SQL transaction when deleting the conversation. Which might lead to deleted conversation and orphaned messages.