I want to produce typed DataTables (create factory for creating it
ready to use (for example 30 of given type)). Everything works fine
when i use widows application to simulate 'eating' datatables from
Queue where are datatables are ready for use. But something goes wrong
when i use my Factory in context of IIS (now 5.0 and windows 2000). I
have one thread which populates Queues when there is no needed
datatables and 1 instance (accesed by static Property) of my Factory
which is one for application domain. DataTables are returned by Create(
IDataTableCreator dataTableCreator) method. Synchronization is very
fast because i use Interlocks to perform synchronization and Interlocks
are used during Dequeue my Queue so I don't have synchronization
problems.

My question is that:
Why in application context everything works fine but in IIS context
everyting is extremaly slow :( If number of precreated datatables is
high (500) then IIS dies during populating my queues. I just wanted to
know if this mechanizm can work in IIS :/


Is there any way to improve performance of Typed DataTable??