Size limit for .properties files

6 views
Skip to first unread message

Lorenzo Donati

unread,
Dec 20, 2010, 12:37:26 AM12/20/10
to scite-i...@googlegroups.com
Hi all!
Recently I tried to pack all definitions of standard properties files
into a big one (just a naive try to avoid some clutter in the Options
menu). I used SciTE 2.23 for this test.

I noticed this strange behaviour: all the options past the first ~64kB
of the files were ignored (no extensive testing done, though, since I
still use SciTE 2.03 for everyday jobs - I hadn't time to test if this
is true also for 2.03).

Is there perhaps a 64kB limit to properties files?

Thanks in advance

--
Lorenzo

Neil Hodgson

unread,
Dec 20, 2010, 5:28:58 AM12/20/10
to scite-i...@googlegroups.com
Lorenzo Donati:

> I noticed this strange behaviour: all the options past the first ~64kB of
> the files were ignored (no extensive testing done, though, since I still use
> SciTE 2.03 for everyday jobs - I hadn't time to test if this is true also
> for 2.03).

Only the first 60000 bytes of .properties files are read.

Neil

Lorenzo Donati

unread,
Dec 20, 2010, 5:39:46 PM12/20/10
to scite-i...@googlegroups.com
Thanks for the reply.

Out of curiosity: is there a reason to set such a (low) limit? I suppose
it is not for performance, since SciTE can read much longer files in
little time and I doubt parsing .properties files has so much overhead
(Lua can handle much bigger files with no fuss).

Am I missing something?

Is that limit maybe some legacy of a very old SciTE version? In this
case wouldn't it be sensible to lift (or at least increase) that limit?


Thanks

--
Lorenzo

Neil Hodgson

unread,
Dec 22, 2010, 6:10:14 AM12/22/10
to scite-i...@googlegroups.com
Lorenzo Donati:

> Out of curiosity: is there a reason to set such a (low) limit? I suppose it
> is not for performance, since SciTE can read much longer files in little
> time and I doubt parsing .properties files has so much overhead (Lua can
> handle much bigger files with no fuss).

It is simple and fast and the largest .properties file distributed
with SciTE is 23K.

Neil

Reply all
Reply to author
Forward
0 new messages