Closed kasajian closed 8 years ago
Looks good, I'll do the pull later today hopefully.
@kasajian can you please submit your pull request against develop branch instead.
Yes. I'll put it on the develop branch
Merged using #17 into dev branch instead
This is an ArraySlice implementation based on .NET's own ArraySegment. It's been modified to support any IList rather than require an array. The benefit is that it can now work with Shared Array because it supports IList.
ArraySlice implements IList, so to an application, it can easily be replaced where you typically would use an array.
The benefit of ArraySlice is that you can create a single large array and then smaller arrays refer to parts of the larger array. One advantage of this is that if you have a lot of small arrays, you don't incur the overhead of creating a Shared Array which has the overhead of its own memory mapped file. Every SharedArray takes 500-600 bytes (on 64-bit) regardless of the actual size of the array.