• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Need to only send part of an array with .NET Remoting

OneOfTheseDays

Diamond Member
Hey guys I was wondering if there was a way with .NET Remoting to only send portions of an array. The main gist of our problem is we have this huge internal array that we use that is too big to send back to the client, instead of allocating a separate array to send back to the client we'd like to just only send back the portions of the array they need. Is there an easy way to do this?
 
Why can't you just create a new array and copy the elements you need out of the big array into the new fresh array?
 
That is the behavior we want to avoid. These arrays we create are all huge and will get allocated onto the LOH on a per request behavior leading to fragmentation and GC performance issues.
 
Then it sounds like you need to rethink your data structures, perhaps a HashTable or a LinkedList would be a better choice. All depends on the nature of the data and the access to it.
 
Back
Top