[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

QE/CORBA sequence mem problem fixed



Hello,

at a phone-meeting a while ago, I mentioned that when dealing with many
(140k) events the QE would use much memory (600MB) due to the way CORBA
sequences copying is implemented. Although it seems that we weren't
affacted by this, I am now happy to let you know that the problem is no
more. I worked around it by using allocbuf() and assignbuf() and then
copying each element one by one. It seems to work fine.

The problem was that when you do assignment of a sequence to another,
CORBA allocates memory according to the `maximum` of the original
sequence. It should, IMHO, use `length`. In the case of the QE, maximum
was 140k and length about 20...

I haven't put this into CVS yet, since it doesn't seem to affect people.

Cheers, Henrik 
_________________________________________
Henrik Nordberg       <hnordberg@lbl.gov>
Scientific Data Management Research Group
Lawrence Berkeley National Laboratory