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
{{ message }}
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.
The library uses List<byte> buffers and I believe the List<T> default constructor only allocates enough space for 10 entries. Given the size of MMAL buffers and camera frames, we should investigate whether there is any benefit to allocating a much larger size in the constructor.
Edit: Additionally, the default behavior is to double the capacity each time the limit is reached. Each list potentially allocates up to twice as much memory as it actually needs.
The text was updated successfully, but these errors were encountered:
The library uses
List<byte>
buffers and I believe theList<T>
default constructor only allocates enough space for 10 entries. Given the size of MMAL buffers and camera frames, we should investigate whether there is any benefit to allocating a much larger size in the constructor.Edit: Additionally, the default behavior is to double the capacity each time the limit is reached. Each list potentially allocates up to twice as much memory as it actually needs.
The text was updated successfully, but these errors were encountered: