Michael Weinhardt wrote:
>
> The Compiled RegexOption causes a regular expression to be compiled to IL,
> then JITed, with the resulting code remaining in memory for the
> lifetime of
> the AppDomain.

<off-topic>
When I first heard this, I thought 'potential denial of service attack'. A
naive ASP.Net developer may compile a RegEx on a page load and reuse that
RegEx throughout the render phase of the page. However, the developer may
not realise they are allocating RAM each time a page is shown. The proper
way to handle this in ASP.Net would be in a static constructor.
</off-topic>


Richard

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to