mworks data extraction

ereming's Avatar

ereming

19 May, 2016 01:37 PM

Hi Chris,

Quick not-so-important question: do you know if there is substantial speed difference between performing multiple calls to getEvents to get single variables, vs. one call to getEvents to get multiple variables, assuming the same total number of events?

Thanks,
Evan

  1. Support Staff 1 Posted by Christopher Sta... on 19 May, 2016 08:19 PM

    Christopher Stawarz's Avatar

    Hi Evan,

    Theoretically, a single call should be more efficient than multiple calls, as there's some overhead associated with opening the data file each time, and extracting each variable separately may result in multiple scans through certain blocks of the file. However, I haven't done any tests to confirm this, and whether the time difference is substantial may depend on how many events you're extracting and how they're distributed throughout the file. Also, if you get all the events at once, then you're subject to the additional time and memory overhead of sorting them in to separate arrays for each variable.

    Maybe just try it and see what happens?

    Chris

  2. Christopher Stawarz closed this discussion on 29 May, 2016 11:34 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac