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 7044359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:24:02+00:00 2026-05-28T02:24:02+00:00

currently we have quite a chunky auditing system for objects within our application, the

  • 0

currently we have quite a chunky auditing system for objects within our application, the flow goes like this..

-Class implements an interface

-Interfaces forces the class to override some methods for adding properties that need auditing to a List of KeyValuePairs

-Class is then also needs to recreate the objects state from a list of key value pairs

Now the developer needs to add all this to there class, also our objects change quite often so we didn’t just serialise the class.

What I would like to do is to use attributes to mark the properties as auditable and then do everything automatically so the developer doesn’t really need to do anything.

My Main question is – I know people always say reflection is slow, how slow are we talking? what performance hits am I going to get from looking through the class and looking at attributes against a property and then doing any required logic?

thanks for any help

Ste,

  • 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-28T02:24:02+00:00Added an answer on May 28, 2026 at 2:24 am

    It’s hard to give a specific answer because it depends on what adequate performance is for your application.

    Reflection is slower then normal compiled code but when worrying about performance problems it’s always better to have something that works and then use profiling to find the real performance bottleneck and optimize.

    Premature optimization could lead to code that’s much harder to maintain so your developers will be less productive.

    I would start with using reflection and write a good set of unit tests so you know your code is working. If performance turns out to be a problem you can use the Visual Studio profiler to profile your unit tests and discover the bottlenecks.

    There are some libraries that can speed up reflection or you could use Expression trees to replace your reflection code if it’s to slow.

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

Sidebar

Related Questions

I currently have a class called Polynomial, The initialization looks like this: def __init__(self,
We currently have a quite complex business application that contains a huge lot of
I currently have an SQL query which is currently called multiple times like this
I've have quite small asp.net MVC 2 application to maintain/extend. Currently it uses hand
In the web application I am currently developing, I have quite a few database
I currently have a .net web application on a cluster based system (Rackspace cloud).
Hi I'm in quite some problem at the moment, I currently have a class
We have quite some room for improvement in our application lifecycle management. We don't
I have this two routes currently in my application after decommenting out many other
Currently our company is using Team Foundation Server 2010, and we have quite a

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.