You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With library version 7, is there a way to pre-allocate memory?
I have a large amount of data (80kb raw size in memory) that I want to serialize to an array "CaptureDataParams": [ [ 305, -2756, 3074.97998, 2130792586, 2130792586, 2047 ], [ 306, -2786, 3075.919922, 2130792278, 2130792278, 2047 ], [ 307, -2816, 3076.530029, 2130791970, 2130791970, 2047 ], ...
I have 5000 of these items, and at least in memory they are a fixed size.
Is there a way to pre-allocate the memory for the nested arrays, such that for each iteration I only have to end up calling malloc() 2-3 times?
The text was updated successfully, but these errors were encountered:
With library version 7, is there a way to pre-allocate memory?
I have a large amount of data (80kb raw size in memory) that I want to serialize to an array
"CaptureDataParams": [ [ 305, -2756, 3074.97998, 2130792586, 2130792586, 2047 ], [ 306, -2786, 3075.919922, 2130792278, 2130792278, 2047 ], [ 307, -2816, 3076.530029, 2130791970, 2130791970, 2047 ], ...
I have 5000 of these items, and at least in memory they are a fixed size.
Is there a way to pre-allocate the memory for the nested arrays, such that for each iteration I only have to end up calling
malloc()
2-3 times?The text was updated successfully, but these errors were encountered: