At the moment I am reading, realtime, upto 400 records every 250ms from a
tcp connection.
This batch is filtered, converted to a set of different types of record,
added to an array ready for sending to a SOAP service.
I'm creating and disposing of a lot of records
Would it be better to use something similar to a thread pool where my record
class is re-used rather than disposed of?
Is there an example somewhere of coding to do this quickly? I could only
think of using an array list, keeping count of used items. I planned to move
an item to the end of the array as it became free, using the counter to
select a free one as it was requested. If I needed to I could create and add
more to the end of the list. Ie Id not dispose of any until the application
died.
Any ideas?