Menu ▾ ▴

#63 pc_read_var inefficient

Accepted
nobody
None
High
Enhancement
2011-06-05
2011-06-05
Anonymous
No

Originally created by: Bourdin.KIS (code.google.com)
Originally owned by: Bourdin.KIS (code.google.com)

Usage of 'pc_read_var' in IDL consumes double memory than actually needed.
This makes reading of variables a pain for lage setups.

First, an array 'varcontent' is setup with allocated memory for reading in the desired variables.
Then, an object is created using the filled varcontent array.
During that process the memory is allocated double.

To be more efficient, the target/output object should be created and the data should be read directly into the object.

Discussion


Log in to post a comment.