XML Form question

View: New views
5 Messages — Rating Filter:   Alert me  

XML Form question

by Matt Osbun :: Rate this Message:

| View Threaded | Show Only this Message

I've recently begun updating one of our web apps- adding some new
features, improving the coding style, and taking advantage of some of
the new CF7 features.

One form was laid out in a nested-table layout, with HTML and CFM
controls mixed in.  I rewrote it using a CF7 XML format with cfformgroup
tags, and execution time went through the roof.  I rewrote the queries
on the page to use cached results, and managed to get execution time
down to about 11000 ms, on average, according to the debug information.

I changed the format back to HTML, and execution time sank to about 250
ms.

I chopped the form down to a very bare-bones layout, but the execution
time increace was roughly the same.

Now, there's nothing requiring me to use an XML format here, so I'll
likely switch to HTML and replace the table layout with DIV's.  The
Label attribute of cfinput and <cfformgroup> are convieniences, to be
sure, but not requirements.  I'm just curious to see if anyone else has
seen this.  Is this normal, or is there likely a misconfiguration on my
server?  I'd expect a performance hit using XML format versus HTML, but
the scale I'm seeing seems a bit excessive.


Matt Osbun
Web Developer
Health Systems, International


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213857
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

RE: XML Form question

by Mike Tangorre :: Rate this Message:

| View Threaded | Show Only this Message

Matt,

I converted a rather large form from plain jane XHTML to a flash form and
the page took about 4 years to load. Nothing to tricky either.... 22 form
elements, 9 of which were select boxes being populated with from cached
queries (average recordset was about 10 records). I was asked to change it
back.



> From: Matt Osbun [mailto:mosbun@...]
> I've recently begun updating one of our web apps- adding some
> new features, improving the coding style, and taking
> advantage of some of the new CF7 features.
>
> One form was laid out in a nested-table layout, with HTML and
> CFM controls mixed in.  I rewrote it using a CF7 XML format
> with cfformgroup tags, and execution time went through the
> roof.  I rewrote the queries on the page to use cached
> results, and managed to get execution time down to about
> 11000 ms, on average, according to the debug information.
>
> I changed the format back to HTML, and execution time sank to
> about 250 ms.
>
> I chopped the form down to a very bare-bones layout, but the
> execution time increace was roughly the same.
>
> Now, there's nothing requiring me to use an XML format here,
> so I'll likely switch to HTML and replace the table layout
> with DIV's.  The Label attribute of cfinput and <cfformgroup>
> are convieniences, to be sure, but not requirements.  I'm
> just curious to see if anyone else has seen this.  Is this
> normal, or is there likely a misconfiguration on my server?  
> I'd expect a performance hit using XML format versus HTML,
> but the scale I'm seeing seems a bit excessive.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213860
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Parent Message unknown RE: XML Form question

by Matt Osbun :: Rate this Message:

| View Threaded | Show Only this Message

  I'm seeing a lot of that with Flash forms.  

  I admit that when I started using CF7, I was like a kid in a candy
store with Flash forms, and started converting darn near all of them to
Flash.  People were pretty impressed at first, until the load times
started to get problematic.  I think the only form I didn't convert back
is an accordian form on our Intranet that displays various company info-
birthdays, hire date anniversaries, company holidays, etc.

  I was surprised to see this kind of execution time increace with
Xforms, though.

Matt Osbun
Web Developer
Health Systems, International



-----Original Message-----
From: Michael T. Tangorre [mailto:mtangorre@...]
Sent: Friday, August 05, 2005 9:53 AM
To: CF-Talk
Subject: RE: XML Form question


Matt,

I converted a rather large form from plain jane XHTML to a flash form
and
the page took about 4 years to load. Nothing to tricky either.... 22
form
elements, 9 of which were select boxes being populated with from cached
queries (average recordset was about 10 records). I was asked to change
it
back.



> From: Matt Osbun [mailto:mosbun@...]
> I've recently begun updating one of our web apps- adding some
> new features, improving the coding style, and taking
> advantage of some of the new CF7 features.
>
> One form was laid out in a nested-table layout, with HTML and
> CFM controls mixed in.  I rewrote it using a CF7 XML format
> with cfformgroup tags, and execution time went through the
> roof.  I rewrote the queries on the page to use cached
> results, and managed to get execution time down to about
> 11000 ms, on average, according to the debug information.
>
> I changed the format back to HTML, and execution time sank to
> about 250 ms.
>
> I chopped the form down to a very bare-bones layout, but the
> execution time increace was roughly the same.
>
> Now, there's nothing requiring me to use an XML format here,
> so I'll likely switch to HTML and replace the table layout
> with DIV's.  The Label attribute of cfinput and <cfformgroup>
> are convieniences, to be sure, but not requirements.  I'm
> just curious to see if anyone else has seen this.  Is this
> normal, or is there likely a misconfiguration on my server?  
> I'd expect a performance hit using XML format versus HTML,
> but the scale I'm seeing seems a bit excessive.





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213864
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

RE: XML Form question

by Mike Tangorre :: Rate this Message:

| View Threaded | Show Only this Message

I am interested to see if some MM people have some ideas as to why the
execution times are so dramatically higher. If this is not a configuration
issue I would be reluctant to use them for larger forms.

Mike


> From: Matt Osbun [mailto:mosbun@...]
> I was surprised to see this kind of execution time increace
> with Xforms, though.
> Matt Osbun



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213868
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Parent Message unknown RE: XML Form question

by Mike Nimer :: Rate this Message:

| View Threaded | Show Only this Message

Can you send me an example? Also are you sure there isn't any other code
running inside the cfform tags, like queries that are making the xml
forms  appear slow.

The slowest part, and it's not that slow, of the xml forms is the xsl
transform we apply to the xml form. If you want try setting the
skin="none". You won't get any output but we also won't run the xslt.
This will help us to narrow it down to the performance culprit.

---nimer

-----Original Message-----
From: Michael T. Tangorre [mailto:mtangorre@...]
Sent: Friday, August 05, 2005 11:12 AM
To: CF-Talk
Subject: RE: XML Form question

I am interested to see if some MM people have some ideas as to why the
execution times are so dramatically higher. If this is not a
configuration
issue I would be reluctant to use them for larger forms.

Mike


> From: Matt Osbun [mailto:mosbun@...]
> I was surprised to see this kind of execution time increace
> with Xforms, though.
> Matt Osbun





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213950
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54