Reading a resource from resx file is very slow

830 Views Asked by At

I have a resource file -stringsCommon0.resx

it is 1320 lines

for reading a resource I'm using the following code

DateTime time1 = DateTime.Now;

string strResult = Resources.stringsCommon0.ResourceManager.GetString(stringName);                

DateTime time2 = DateTime.Now;

double mil = (time2 - time1).TotalMilliseconds;

when i look mil it gives results between 15 and 17,

i think it is very big number since in my application i always read it from stringsCommon0 by the code believe.

by the time the values is getted while debugging.

what should i do now? Are the results normal? what else should i do for multilinguality?

0

There are 0 best solutions below