-- [ Picked text/plain from multipart/alternative ] Yup, those numbers synch up with what we are seeing. Back to the drawing board :) Thanks.
On 6/12/07, LDuke <[EMAIL PROTECTED]> wrote: > > -- > [ Picked text/plain from multipart/alternative ] > Also, here's some info he posted on the allied modders forums: > > [QUOTE] > More news regarding performance hit with KeyValues class. > > It seems that the performance of the KeyValues class is not as good as I > thought. The time to read seems to go up exponentially depending on the > amount of records that are contained within the KeyValues style file. > > I tested with some auto generated data based on my stats code. > > To read 15000 records, 4.9 seconds. > To write 15000 records, 18.5 seconds. > > To read 30000 records, 34 seconds. > To write 30000 records, 105 seconds. > > As you can see that is quite a jump in the amount of time taken and is > certainly not the case of 'twice as many records = twice the amount of > time' > > > Mani > > [/QUOTE] > > > On 6/12/07, LDuke <[EMAIL PROTECTED]> wrote: > > > > You could try "rolling your own." > > > > Mani was discussing KeyValues on IRC a while back. He said once you got > > above a couple thousand keys they were very inefficient. If I remember > the > > numbers right, his custom code was taking something like 3 seconds for > what > > was taking keyvalues over 30 seconds to do. > > > > On 6/11/07, Oliver <[EMAIL PROTECTED]> wrote: > > > > > > -- > > > [ Picked text/plain from multipart/alternative ] > > > CONTEXT: In our mod, we allow users to create event-driven worlds and > > > save > > > their work. Saving is done with .res files and uses > > > KeyValues::SaveToFile(...). Some of our testers created worlds with > > > ALOT > > > more entities than we planned for, resulting in large res files > (>2mb). > > > > > > PROBLEM: A 2mb file takes about 1.75 minutes to save to disk, which is > > > way > > > to long for users. > > > > > > QUESTIONS: > > > a) Anyone know how to improve the time for SaveToFile(...)? > > > b) Should SaveToFile(...) be faster then the times we are getting? > > > > > > Thanks. > > > -- > > > > > > _______________________________________________ > > > To unsubscribe, edit your list preferences, or view the list archives, > > > please visit: > > > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > > > > > > > -- > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > -- _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

