StructuredTextEditor consumes huge amount of memory [message #204048] |
Fri, 09 November 2007 11:24  |
Eclipse User |
|
|
|
Originally posted by: ying_sun.yahoo.com
Hi All,
We have a multi-page editor that uses StructuredTextEditor as an
embedded page to display the source. However, we are experiencing a high
memory usage problem when opening a large (>4M) XML file. We tried to
open the same XML file in RAD (7.0.0.5) and noticed that the
StrcturedTextEditor uses close to 80 meg of memory. We understood that
opening such a large file probably requires quite a bit memory but still
feel shocked.
Has anyone experience the similar problem? Any suggestion?
Ying
|
|
|
|
Re: StructuredTextEditor consumes huge amount of memory [message #204077 is a reply to message #204048] |
Fri, 09 November 2007 11:49  |
Eclipse User |
|
|
|
Originally posted by: dcarver.starstandard.org
Ying wrote:
> Hi All,
>
> We have a multi-page editor that uses StructuredTextEditor as an
> embedded page to display the source. However, we are experiencing a high
> memory usage problem when opening a large (>4M) XML file. We tried to
> open the same XML file in RAD (7.0.0.5) and noticed that the
> StrcturedTextEditor uses close to 80 meg of memory. We understood that
> opening such a large file probably requires quite a bit memory but still
> feel shocked.
>
> Has anyone experience the similar problem? Any suggestion?
>
You may want to add your comments to the following bugs:
Bug 136935
Bug 156564
Bug 182552
These are some of the performance and memory issues. The bugs can be
accessed at http://bugs.eclipse.org
> Ying
|
|
|
Re: StructuredTextEditor consumes huge amount of memory [message #204198 is a reply to message #204063] |
Tue, 06 November 2007 20:50  |
Eclipse User |
|
|
|
On Fri, 09 Nov 2007 11:43:06 -0500, Ed Merks <merks@ca.ibm.com> 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.
|
|
|
Powered by
FUDForum. Page generated in 0.03569 seconds