ASP.NET没有对象在Java EE中的标准池样的呢? [英] ASP.NET doesn't have Object Pooling in standard like in Java EE?

查看:170
本文介绍了ASP.NET没有对象在Java EE中的标准池样的呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读到这 C#对象池模式实现所以我的问题:做一件有实现自己的对象池战略ASP.NET,而这种存在于Java EE的?

I read this C# Object Pooling Pattern implementation so my question: does one have to implement own Object Pooling strategy in ASP.NET whereas this exists in Java EE?

嗯,我为我preFER .NET平台与Java心烦,但在这里,在Java中它没有成为一个大师做。我很惊讶,ASP.NET没有实现至少相同,甚至更好。

Well I'm upset as I prefer .net platform to java, but here in java it's done without being a guru. I'm surprised ASP.NET didn't implement at least the same and even better.

推荐答案

最近我了解到,.NET涵盖本作ATLEAST一些场景。

Recently I've learned that .NET covers this for atleast some scenarios.

BufferManager类

是对缓冲对象池。我没有看到任何现成的方法来扩展这个短decompiliation和放大器的其他用途;逆向工程。然而,它可能是一个更有用的类存在于某处.NET深。

Is an object pool for buffers. I don't see any readily available way to extend this for other purposes short of decompiliation & reverse engineering. However it's possible that a more usable class exists somewhere deep in .NET.

在关于 C#对象池模式实现的参与这将复杂性也基本上与.NET 4.0减少已被释放。锁定code的大部分(或全部)可完全被一扫而空,取而代之的并发数据类。

Also in regards to C# Object Pooling Pattern implementation the complexity involved in this will reduce substantially with .NET 4.0 having been released. The majority (or all) of the locking code could completely be swept away and replaced with the Concurrent data classes.

这篇关于ASP.NET没有对象在Java EE中的标准池样的呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆