techyian / MMALSharp

C# wrapper to Broadcom's MMAL with an API to the Raspberry Pi camera.
MIT License
195 stars 33 forks source link

Investigate use of ArrayPool to reduce allocations #202

Open MV10 opened 2 years ago

MV10 commented 2 years ago

The library is heavily array-dependent, and due to the nature of image handling, we're often allocating very large arrays on the large object heap. The ArrayPool API may help alleviate GC overhead.

Useful details discussed here: https://adamsitnik.com/Array-Pool/