wfdb icon indicating copy to clipboard operation
wfdb copied to clipboard

Cache downloaded header file(s) in isigopen

Open bemoody opened this issue 9 years ago • 0 comments

The usual idiom is to call isigopen(record, NULL, 0) to determine how many signals are in a record, then to call isigopen a second time after allocating the signal information buffer. In this case, we should only have to download the master header file (and the layout header file, if any) once. This could be implemented by keeping the WFDB_FILE handles open and rewinding them, rather than closing and reopening them.

bemoody avatar Aug 27 '14 19:08 bemoody