Skip to content

Improve handling of vectors in streaming handlers #144

@tmadlener

Description

@tmadlener

In some places vector elements are copied element by element into the sio stream, e.g.

SIO_DATA( device , &nInt , 1 ) ;
for(int j=0; j< nInt ; j++ ) {
SIO_SDATA( device, intVec[j] ) ;
}

sio should be able to handle vectors as a whole, without having to read each element separately. We do this in podio: https://github.com/AIDASoft/podio/blob/master/src/SIOBlock.cc#L47-L67

	SIO_SDATA(device, intVec);

Originally posted by @tmadlener in #143 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions