On Fri, Oct 15, 2010 at 5:29 AM, Carlo Wood <ca...@alinoe.com> wrote:
> On Fri, Oct 15, 2010 at 04:47:21AM -0700, leliel wrote:
>> On Fri, Oct 15, 2010 at 4:38 AM, Carlo Wood <ca...@alinoe.com> wrote:
>> > I was hoping that log files are updated very
>> > frequently, so that if I crash I don't lose
>> > text. But writing several megabytes to disk
>> > every line of chat seems unfeasible.
>>
>> It's 115 bytes + display name + message per line. Just where are these
>> several megabytes coming from?
>
> -rw-r--r-- 1 carlo carlo 60282480 Sep 28 00:30 chat.txt
>
> That is 60 MB. And that is BEFORE we're using LLSD.

What does the size of the file have to do with anything? Do you really
think the viewer is reading the whole file in and appending the
message then writing the whole thing out for every line of chat? Once
again, where are these several megabytes coming from?

FYI the relevant code is in
indra/newview/lllogchat.cpp::LLLogChat::saveHistory()
_______________________________________________
Policies and (un)subscribe information available here:
http://wiki.secondlife.com/wiki/OpenSource-Dev
Please read the policies before posting to keep unmoderated posting privileges

Reply via email to