Not logged in. · Lost password · Register
Forum: Community Bugs RSS
Lags In Log History

Announcement

11-16-2005, 13:33 by halr9000
Subject: Psi Groupchat (new address)
Join us at the Psi Groupchat (MUC)! Room name: psi@conference.psi-im.org
rusty #1
Member since 08/2004 · 4 posts
Group memberships: Members
Show profile · Link to this post
Hi,

I noticie that when I write to a contact with large log file, there is an important lag (about 1-2 seconds for 5 Mb log).

An strace of psi show me that psi is reading the whole history file before appending the text. It is not happening for each
line appended, but only when the file decscripor of log is closed.


I'm using psi-0.9.3 and qt-3.3.4
Avatar
michalj (Moderator) #2
Member since 04/2004 · 2285 posts · Location: Legionowo, Poland
Group memberships: Global Moderators, Members
Show profile · Link to this post
Same happens on Windows. History is a subject of rewrite in one of upcoming Psi versions. Hope it will be fixed then.
Michał Jazłowiecki (michalj)
Psi Forum & Wiki Moderator :: Psi-Daisy Author
Avatar
halr9000 (Administrator) #3
User title: I work here
Member since 11/2002 · 2311 posts · Location: Atlanta
Group memberships: Administrators, Members
Show profile · Link to this post
I think mblsha or IceRAM made some minor changes that might have affected this behavior.  Does the issue exist in the same way on CVS?
Hal Rottenberg
Webmaster, Evangelist, Co-conspirator to the Revolution
IceRAM (Moderator) #4
Member since 05/2003 · 1286 posts · Location: Bucharest, Romania
Group memberships: Global Moderators, Members
Show profile · Link to this post
History? Me? Never.

I only found some memory leaks (pointers which were never freed) in the events handling system which were patched by Remko (the pointers reffered to events not being freed after they have been added to queue, AFAIR - some users reported big memory usage for Psi and I located the problem in that part of code).

Other than that, nobody touched history/events (fixing bugs/adding features) for the last few versions - AFAIK.

IMO, appending should be done by seeking to the end of file (not reading the entire file) and writing the text there. It's pretty weird it happens the way rusty reported. I have never looked over that code (not mine) since it was marked as "obsolete" and will be revamped in a future version (note that I am not a dev).

FlySprayed as Task #438.
::/ my .net presence / weblog | psi
Close Smaller – Larger + Reply to this post:
Smilies: :mellow: :huh: ^_^ :o ;) :P :D :lol: B) :rolleyes: -_- <_< :) :wub: :angry: :( :unsure: :wacko: :blink: :ph34r:
Special characters:
Go to forum
Unclassified NewsBoard devel of 20051113 © 2003-5 by Yves Goergen
Current time: 11-20-2008, 06:02:06 (UTC -05:00)