Closed Bug 338969 Opened 18 years ago Closed 18 years ago

loading an instance and populating a select1 with its data is very slow

Categories

(Core Graveyard :: XForms, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 329935

People

(Reporter: maria.soler, Assigned: aaronr)

Details

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; ca; rv:1.8.0.3) Gecko/20060513 Ubuntu/dapper Firefox/1.5.0.3
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; ca; rv:1.8.0.3) Gecko/20060513 Ubuntu/dapper Firefox/1.5.0.3

We load an instance with xml data and populate a select1 with this. We do this because this data has to be dinamically generated. Even if we us an xml local file, the loading of this data has a delay of some minutes... This delay depends on the size of the xml, but even with not so big files is larger than it should be.It is not usable.

Reproducible: Always

Steps to Reproduce:
1. open the form attached
2. you'll see the time it will take to load the data
Attached file test form
Comment on attachment 223025 [details]
test form

><?xml version="1.0" encoding="ISO-8859-1"?>
><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
><html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms" xml:lang="en">
>  <head>
>    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
>    <title>CIVTAT</title>
>    <xf:model id="habitant" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ev="http://www.w3.org/2001/xml-events">
>      <xf:instance id="default" src="habBuit.xml"/>
>      <xf:instance id="municipis" xmnls="" src="https://bugzilla.mozilla.org/attachment.cgi?id=223026"/>
>
>      <xf:submission action="" id="submit" method="post" includenamespaceprefixes=""/>
>    </xf:model>
>  </head>
>  <body>
>    <div id="heading-paper"/>
>    <div id="heading-screen"/>
>    <br/>
>    <div id="cos">
>      <div xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ev="http://www.w3.org/2001/xml-events" id="form">
>	<h1>Alta d'Habitants</h1>
>	<xf:group class="grup">
>	  <div class="label_grup">
>	    <xf:label>Dades personals</xf:label>
>	  </div>
>	    <div class="fila_grup">
>	      <xf:group id="llocN">
>		<xf:label class="subgrup">Lloc de naixement  </xf:label>
>		<br/>
>	      <xf:select1 ref="/habitant/llocN/municipi">
>                <xf:label>Municipi  </xf:label>
>                <xf:itemset nodeset="instance('municipis')/municipi">
>                  <xf:label ref="nom"/>
>                  <xf:value ref="id"/>
>                </xf:itemset>
>	      </xf:select1>
>
>            </xf:group>
>
>          </div>
>        </xf:group>
>        <br/>
>        <xf:submit submission="submit">
>          <xf:label>Enviar</xf:label>
>        </xf:submit>
>      </div>
>    </div>
>  </body>
></html>
Comment on attachment 223025 [details]
test form

><?xml version="1.0" encoding="ISO-8859-1"?>
><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
><html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:xf="http://www.w3.org/2002/xforms" xml:lang="en">
>  <head>
>    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
>    <title>CIVTAT</title>
>    <xf:model id="habitant" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ev="http://www.w3.org/2001/xml-events">
>      <xf:instance id="default" src="habBuit.xml"/>
>      <xf:instance id="municipis" xmnls="" src="https://bugzilla.mozilla.org/attachment.cgi?id=223026"/>
>
>      <xf:submission action="" id="submit" method="post" includenamespaceprefixes=""/>
>    </xf:model>
>  </head>
>  <body>
>    <div id="heading-paper"/>
>    <div id="heading-screen"/>
>    <br/>
>    <div id="cos">
>      <div xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ev="http://www.w3.org/2001/xml-events" id="form">
>	<h1>Alta d'Habitants</h1>
>	<xf:group class="grup">
>	  <div class="label_grup">
>	    <xf:label>Dades personals</xf:label>
>	  </div>
>	    <div class="fila_grup">
>	      <xf:group id="llocN">
>		<xf:label class="subgrup">Lloc de naixement  </xf:label>
>		<br/>
>	      <xf:select1 ref="/habitant/llocN/municipi">
>                <xf:label>Municipi  </xf:label>
>                <xf:itemset nodeset="instance('municipis')/municipi">
>                  <xf:label ref="nom"/>
>                  <xf:value ref="id"/>
>                </xf:itemset>
>	      </xf:select1>
>
>            </xf:group>
>
>          </div>
>        </xf:group>
>        <br/>
>        <xf:submit submission="submit">
>          <xf:label>Enviar</xf:label>
>        </xf:submit>
>      </div>
>    </div>
>  </body>
></html>
Confirmed. Ouch it's slow on v0.5
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → All
Hardware: PC → All
This is fixed by bug 329935. What takes around 3 minutes on a 0.5 release build, takes 7 seconds on a debug trunk build. Still not blazingly fast, but a giant improvement.

So in other words, next release should improve matters a lot.

*** This bug has been marked as a duplicate of 329935 ***
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: