Skip to content

DataSet::read over 2x slower than DataSet::read_raw for Eigen::Matrix #1051

Answered by 1uc
quantumsteve asked this question in Questions
Discussion options

You must be logged in to vote

This answer is related to API stability.

The proposed change can easily go unnoticed, e.g. in square matrices, but also in cases where one doesn't know that shape via an independent source of truth. By simply looking at the file, it's impossible to know if a [n, m] array is genuinely [n, m] or actually [m, n] stored column major.

Therefore, this change is quite error prone. It's also extremely hard to recover from, because one can't know if a particular file was written with highfive<=3.0.0-rc1 or not. Hence one can't write code to mitigate the change, making it impossible to read old files with new HighFive correctly in a transparent way.

Hence, given the state of HighFive, personally, I…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by 1uc
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants