'Hawk Anonymous' via pytables-users
2017-02-07 14:43:04 UTC
Hello,
I have a question in how to store data efficiently in pytables.
ATM, I have multiple variables, each variable in one CArray.
I read one CArray back to an numpy array and then apply a cut (let say, all
values
above 5) to generate a Boolean mask which I apply then to all variables.
Naively, I would have thought that this is the fasted approach to my
problem (assuming
the data is consequentially stored in memory) but multiple people told me
that I should instead use a table.
Using a table would also make my live a lot easier as I would only have to
apply the mask to the table, not all arrays.
What I do not get is how a table is supposed to be faster. They are row
major, aren't they?
But for example this here:
https://groups.google.com/forum/#!searchin/pytables-users/table$20array|sort:relevance/pytables-users/Quz9pWgjFpQ/zWU1TGkD4vUJ
claims that they are indeed faster.
So how is this possible if it is true in the first space?
Can I just use a table or will I use a ton of speed because of it?
Thanks in advance,
I have a question in how to store data efficiently in pytables.
ATM, I have multiple variables, each variable in one CArray.
I read one CArray back to an numpy array and then apply a cut (let say, all
values
above 5) to generate a Boolean mask which I apply then to all variables.
Naively, I would have thought that this is the fasted approach to my
problem (assuming
the data is consequentially stored in memory) but multiple people told me
that I should instead use a table.
Using a table would also make my live a lot easier as I would only have to
apply the mask to the table, not all arrays.
What I do not get is how a table is supposed to be faster. They are row
major, aren't they?
But for example this here:
https://groups.google.com/forum/#!searchin/pytables-users/table$20array|sort:relevance/pytables-users/Quz9pWgjFpQ/zWU1TGkD4vUJ
claims that they are indeed faster.
So how is this possible if it is true in the first space?
Can I just use a table or will I use a ton of speed because of it?
Thanks in advance,
--
You received this message because you are subscribed to the Google Groups "pytables-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pytables-users+***@googlegroups.com.
To post to this group, send an email to pytables-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "pytables-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pytables-users+***@googlegroups.com.
To post to this group, send an email to pytables-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.