[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.webtools] Re: StructuredTextEditor consumes huge amount of memory
|
On Fri, 09 Nov 2007 11:43:06 -0500, Ed Merks <merks@xxxxxxxxxx> wrote:
> In the
> end, it doesn't seem so surprising to me you should see so much growth...
>
Ed's right. The StructuredEditor's huge memory use is not so much determined
by number of bytes in the input file, as it is the number of Elements or Nodes.
Years ago, I did some informal "study" and found the limit was about 10000 Elements.
and, still be able to edit the file with reasonable performance.
In other words, if you had a 100 Elements in a megabyte file, you'd be fine, but if
you had 10000 elements in a 100K file you'd still run into trouble.
I'm sure we've improved things since then, but there will always be some limit like this
in a model based editor.
Usually, whenever I see the contents of 1Meg or 4Meg XML like files, it's because they are
in some form other a representation of a database. Perhaps even directly the result of a database
query.
And, as you can imagine, the StructuredTextEditors were not designed with database quantities
in mind ... but rather with users typing in content.
I would be really cool to get some contributions that traded-off the right functions to be
able to do both -- database quantities and user input -- but suspect its a fair amount of work.