.properties performance question
Does it matter if you put all texts in 1 big properties file, or is it better to divide it into multiple properties files?
In CSS it is better to put everything into one file because the browsers caches it afterwards, is this the same with properties? (although this one in server-side as opposed to the client-sided css)
thanks
[347 byte] By [
radicjesa] at [2007-11-27 11:11:13]

So if I got around ~1500+ keywords and sentences in the file it won't make a notable differnce if i split that up into multiple files?
I assume the webserver caches it, so the amount of users will not matter that much.
I'll create it with 1 big file first, and see if it is of any use to split it but 1 big file seems more suitable
> So if I got around ~1500+ keywords and sentences in
> the file it won't make a notable differnce if i split
> that up into multiple files?
> I assume the webserver caches it, so the amount of
> users will not matter that much.
It might do, but the only way to know is to...
> I'll create it with 1 big file first, and see if it
> is of any use to split it but 1 big file seems more
> suitable
...test it! Don't bother optimizing it to gain a few milliseconds. Remember, this is a web page, people are busy clicking things and what-not, they won't notice a few millis here and there
Ok thank you for your answer, i've created two big properties files now (one for error codes and one for all the other static information that needs to be translated).
Maybe i'll split up some almost-never-used properties to a seperate file in the future but it seems it will not be a big improvement
> > I'll create it with 1 big file first, and see if
> it
> > is of any use to split it but 1 big file seems
> more
> > suitable
>
> ...test it! Don't bother optimizing it to gain a few
> milliseconds. Remember, this is a web page, people
> are busy clicking things and what-not, they won't
> notice a few millis here and there
In fact, it doesn't matter anywhere (unless the cumulative effect of all those milliseconds starts to really add up).
People typically spend several dozen seconds to minutes looking at a screen before doing anything with it.
Compared to that a few tenths of a second more or less to construct that screen won't have an appreciable effect on their productivity.