Skip to content

Commit

Permalink
Added more content to any_type.html
Browse files Browse the repository at this point in the history
  • Loading branch information
hosseinmoein committed May 8, 2023
1 parent 830b9eb commit 474415d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/HTML/any_type.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
<body>

To have containers of multiple types in C++ is not simple because although C++ is not strongly typed it is statically typed. That means all types must be known at compile time.<BR>
One general approach is to use polymorphism and have containers of pointers. There are several variations of this approach. They are all inefficient especially for larger datasets because they break cache locality.<BR>
DataFrame solves the problem differently. It uses static containers in conjunction with meta-programming to simulate heterogenous containers.
One approach is to use polymorphism and have containers of pointers. There are several variations of this approach. They are all inefficient especially for larger datasets because they break cache locality. Another approach is to use containers of <I>std::variant</I>. In this case if you need to support a new type you must modify your code. Also, for large datasets <I>std::variant</I> could waste a lot of unnecessary memory space.<BR>
DataFrame solves the problem differently. It uses static containers in conjunction with meta-programming to simulate heterogenous containers that can support <I>any type</I> without having to modify code and keeps column data in <I>contiguous memory</I> space and does not use <I>unnecessary memory</I>.
<BR>
<BR>
<BR>
Expand Down

0 comments on commit 474415d

Please sign in to comment.