Replies: 5 comments 2 replies
-
This may require some changes in DataFrame but not much . It just makes the interface a little more involved. But if you have regular stl vectors of long double, wouldn’t you accomplish the same thing |
Beta Was this translation helpful? Give feedback.
-
Yeah, I can incorporate that ability. I can write an aligned allocator and then switch all vectors to that optionally. It doesn't have to be across all columns |
Beta Was this translation helpful? Give feedback.
-
@RichProgrammerEE , If you want you can watch this PR and comment on it to implement aligned memory allocation It it going to take me a little time to implement this all the way through |
Beta Was this translation helpful? Give feedback.
-
Oh wow, you have made some quick progress. It looks great, thank you! |
Beta Was this translation helpful? Give feedback.
-
This is now done and merged to master |
Beta Was this translation helpful? Give feedback.
-
My current project uses vector<T, Alloc> to get allocator-aware vectors. This is mainly to use these vectors with SIMD operations that require cache-aligned data. For example, my default custom allocator uses 64 byte alignment. I don't see a way that I can use these vectors to initialize a DataFrame because the interfaces all take vector and not vector<T, Alloc>. Would you be open to supporting the allocator template type? I'm not sure what magnitude of change this represents to the library at the moment, just wanted to start the discussion.
Beta Was this translation helpful? Give feedback.
All reactions