Re: [Xsltforms-support] FW: Load Time Performance improvement - It works!
Brought to you by:
alain-couthures
From: Stephen C. <Ste...@ut...> - 2011-01-12 08:56:41
|
I don't use exist so cannot comment on that aspect. However, resorting to parsing the whole generated javascript sounds like a bad idea, there is usually a way forward within the standard XForms functionality. A GET request can be built from within the form and then sent off to load another instance with dynamic query key-value pairs. I think I have discussed Alain at one time, to put GET request parameters of the form request into a default model instance, so that they can be accessed from within the form to then load another 'real' instance using "xforms-model-construct-done" event. -----Original Message----- From: ch...@gm... [mailto:ch...@gm...] On Behalf Of Christian Meisenbichler Sent: Wednesday, 12 January 2011 7:35 PM To: Stephen Cameron Subject: Re: [Xsltforms-support] FW: Load Time Performance improvement - It works! Concerning caching of xsltforms transform. I was forced to do caching of the transform as well because the transform takes about 2 min! the caching is fine because I only need to update the location of the model and the post URI. That said the search and replace operation to do so is very slow with the xquery functions provided by eXistdb. It is the major part of the load time now. If I only had to parse a smaller piece of text than the whole generated javascript, or maybe set the values in a separate piece of code. I think I could improve load times dramatically. I would need a way to replace or modify the submission and instance objects created by "new XFSubmission" and "new XFInstance" Are there methods to do this? I am not very experienced in javascript, so digging trough the javascript code is a bit over my head. Any ideas? On Wed, Jan 12, 2011 at 12:22 AM, Stephen Cameron <Ste...@ut...> wrote: > > > > I do this pre-transformation (compilation) as well using Saxon, the result has never given me any problems in the browser. > > > > From: Dan McCreary [mailto:dan...@gm...] > Sent: Wednesday, 12 January 2011 3:45 AM > To: Santosh Chandak > Cc: XSLTForms support > Subject: Re: [Xsltforms-support] Load Time Performance improvement - It works! > > > > This sounds like a very useful result. > > Thank you for sharing. > > - Dan > > On Tue, Jan 11, 2011 at 7:53 AM, Santosh Chandak <san...@gm...> wrote: > > A simple trick has helped our form to reduce load time from 30 seconds to 4 seconds. If form is big, XSLTForms transform takes some time to create the HTML elements. If we create the output HTML beforehand, the time spent in transforming the xml to html can be saved. I used java saxon8 xslt transformer for our 104 K size form. Result is saved to a HTML page, which can be loaded directly. > > I hope this will help others as well! > > > ------------------------------------------------------------------------------ > Gaining the trust of online customers is vital for the success of any company > that requires sensitive data to be transmitted over the Web. Learn how to > best implement a security strategy that keeps consumers' information secure > and instills the confidence they need to proceed with transactions. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > > > -- > Dan McCreary > Semantic Solutions Architect > office: (952) 931-9198 > cell: (612) 986-1552 > > ------------------------------------------------------------------------------ > Protect Your Site and Customers from Malware Attacks > Learn about various malware tactics and how to avoid them. Understand > malware threats, the impact they can have on your business, and how you > can protect your company and customers by using code signing. > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > |