N
Nephi Immortal
I am going to create a huge array even as 100 MB. The problem is
that shift some elements in the right direction after number of
elements are inserted. Vector is slow due to shift issue. Linking
List is not the option because list of pointers take more memory.
I want to know how many elements are limited in order to use shift.
Perhaps, you recommend 4KB, 256KB, or 1 MB. The array of 100 MB is
divided into 4 KB pages or sub-arrays. The list of pointer gets each
page’s memory address.
The program can speed up and run faster if 4 KB pages are used. The
insert and shift can narrow to 4 KB page and leave other pages
untouched. It is an example of string object like word processor.
that shift some elements in the right direction after number of
elements are inserted. Vector is slow due to shift issue. Linking
List is not the option because list of pointers take more memory.
I want to know how many elements are limited in order to use shift.
Perhaps, you recommend 4KB, 256KB, or 1 MB. The array of 100 MB is
divided into 4 KB pages or sub-arrays. The list of pointer gets each
page’s memory address.
The program can speed up and run faster if 4 KB pages are used. The
insert and shift can narrow to 4 KB page and leave other pages
untouched. It is an example of string object like word processor.