locked
Performance impact when using resource class library RRS feed

  • Question

  • User1276892267 posted

    My application consists of 3 project:

    • A website project (presentation layer)
    • A business logic project (business layer)
    • A data access project (data layer)

    I got a requirement to support multi-lingual for my application. I intended to use the resource files for the website project (resource files are put in App_GlobalResources directory). However, since some classes in the business logic project also contain messages (e.g: error message, warning message, etc.), I'm going to put the resource files into a separated class library instead.

    My question is that is there any comparison about performance between using "website" resource files and "class library" resource file? Is my solution the best in this case? Could you please give me advice?

    Many Thanks!

    Tuesday, August 23, 2011 11:50 PM

Answers

  • User-1179452826 posted

    Well the assembly will need to be loaded (as with any dll) but I'd say that's quite insignificant.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, August 25, 2011 4:02 AM

All replies

  • User-1179452826 posted

    There shouldn't be any considerable loss of performance for putting the resources in a separate assembly.

    Tuesday, August 23, 2011 11:58 PM
  • User1276892267 posted

    You meant there is no performance impact when we put the resources in a separate assembly, right? (Sorry for my bad English)

    Thursday, August 25, 2011 2:28 AM
  • User-1179452826 posted

    Well the assembly will need to be loaded (as with any dll) but I'd say that's quite insignificant.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, August 25, 2011 4:02 AM