Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3356510
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:31:18+00:00 2026-05-18T02:31:18+00:00

I just heard that DLR has a three level caching strategy.. But what it

  • 0

I just heard that DLR has a three level caching strategy.. But what it is .. A simple explanation with simple example will be very helpful.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T02:31:18+00:00Added an answer on May 18, 2026 at 2:31 am

    This is how I understand it, the idea of the caching is to reuse expressions wherever possible to reduce the dynamic vs static overhead of dynamic expression evaluation.

    imagine a dynamic expression

    >> a + b
    

    Then working this out the first time an expression/syntax tree will need to be created (if one doesn’t exist). This is of the type

    if a is an int and not null and b is an int and not null then result = a + b
    

    This is essentially a rule that can evaulated and if true the expression can be used. Hence we have a level 1 cache.

    Level 2 is simillar but a more complex rule, probably along the lines of:

    if a is an int and not null and b is an int and not null then result = a + b
    if a is string  and b is an int then do Int.Parse(a) + b
    etc...
    

    Level 3 is more complex still.

    if no expression can be found then a new expression is created and added to one of the caches (though I don’t know anything about that).

    As I understand it l1 is 1 rule, l2 is about 10 rules and l3 is about 100 rules.

    I got all this from reading around the subject on google.
    – http://dotnetslackers.com/articles/csharp/Dissecting-C-Sharp-4-0-Dynamic-Programming.aspx
    – http://msdn.microsoft.com/en-us/magazine/cc163344.aspx

    and some others I cannot recall now.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have heard mention that some desktop applications are pretty much just wrappers for
I have just heard that - push notification is possible in iPhone I need
I have just heard that the iphone cannot do double natively thereby making them
I heard that using short s on 32bit system is just more inefficient than
I'm just curious how this is done directly by browsers. I heard that .length
I heard that Event Espresso can do anything that the Eventbrite do. But I
I've just learnt (the hard way) that databinding doesn't work with fields. This isn't
I've just heard the term covered index in some database discussion - what does
Maybe I'm just thinking about this too hard, but I'm having a problem figuring
This shouldn't be so hard but I just can't seem to get this to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.