msel-source / meflib

Multiscale Electrophysiology Format library
Other
3 stars 2 forks source link

Optional reading of indices #23

Closed MaxvandenBoom closed 4 years ago

MaxvandenBoom commented 4 years ago

Hey Dan,

As we discussed, this PR will adds the optional reading of indices using MEF_GLOBALS.

For example, matmef now uses this when it only wants the metadata:

MEF_globals->behavior_on_fail           = SUPPRESS_ERROR_OUTPUT;
MEF_globals->read_time_series_indices   = 0;
MEF_globals->read_video_indices         = 0;
MEF_globals->read_record_indices        = 0;

It gives me quite the performance boost when reading over the network