If you intend to get a reference and make multiple calls on it , using object pooling without jit activation may result in better performance 如果打算获取引用并多次调用它,使用没有启用jit激活的对象池可能会提高性能。
However , it is necessary when you are using the com object pooling service while the just - in - time activation service is not enabled 但是,如果在使用com +对象池服务时没有启用实时( jit )激活服务,则必须从客户端调用disposeobject 。
Object pooling lets you control the number of connections you use , as opposed to connection pooling , where you control the maximum number reached 对象池使您能够控制所使用的连接数量,与连接池相反,连接池用来控制达到的最大数量。
Object constructors used in conjunction with object pooling provide the capabilities of a resource dispenser , without the effort of implementing a full resource dispenser 与对象池一起使用的对象构造函数提供资源分配器的能力,无需实现完整的资源分配器。
Component services provides improved threading and security , transaction management , object pooling , queued components , and application administration and packaging 组件服务改进了线程处理、安全性、事务管理、对象共享、队列组件、应用程序管理和封装。
You will then have the skills you need to write a good microbenchmark for something like the cost of synchronization , object pooling , or virtual method invocation 然后您就会拥有编写一个好的度量某种东西的微基准所需的技术,例如同步、对象池或者虚方法调用的成本。
Using either operating system with multiple application domains and your application activation set to server , out - of - process clients use the object pool in the default application domain 无论使用哪一种操作系统,当有多个应用程序域,且应用程序激活设置为服务器时,进程外客户端将使用默认应用程序域中的对象池。
Just - in - time activation , object pooling , queued components , role - based security , synchronization , transactions , and shared property management are examples of well - known com services that are available for you to use 实时( jit )激活、对象池、排队组件、基于角色的安全性、同步、事务和共享的属性管理都是可以使用的熟知的com +服务示例。