<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: More on performance of large forms with empty fields</title>
		<link>https://legacy.forums.gravityhelp.com/topic/more-on-performance-of-large-forms-with-empty-fields</link>
		<description>Gravity Support Forums Topic: More on performance of large forms with empty fields</description>
		<language>en-US</language>
		<pubDate>Sat, 04 Apr 2026 18:08:28 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/more-on-performance-of-large-forms-with-empty-fields" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "More on performance of large forms with empty fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/more-on-performance-of-large-forms-with-empty-fields#post-121549</link>
			<pubDate>Mon, 14 Jan 2013 10:13:36 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">121549@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'll send them a link to this topic again in case they did not get the update.  Sounds like you're making good progress.  Thanks for letting us know.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>webaware on "More on performance of large forms with empty fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/more-on-performance-of-large-forms-with-empty-fields#post-121147</link>
			<pubDate>Sun, 13 Jan 2013 22:42:22 +0000</pubDate>
			<dc:creator>webaware</dc:creator>
			<guid isPermaLink="false">121147@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;G'day Chris, thanks for the update.&#60;/p&#62;
&#60;p&#62;On a hunch, I took another look at the original form, and discovered that they had built it with redundant calculations, summing things three times:&#60;/p&#62;
&#60;ol&#62;
&#60;li&#62;sum of #students
&#60;/li&#62;
&#60;li&#62;sum of #class trainers
&#60;/li&#62;
&#60;li&#62;sum of #additional trainers
&#60;/li&#62;
&#60;li&#62;(sum of #students) + (sum of #class trainers) + (sum of #additional trainers)
&#60;/li&#62;
&#60;li&#62;((sum of #students) + (sum of #class trainers) + (sum of #additional trainers)) * 100
&#60;/li&#62;
&#60;li&#62;((sum of #students) + (sum of #class trainers) + (sum of #additional trainers)) * 50
&#60;/li&#62;
&#60;/ol&#62;
&#60;p&#62;By removing redundant calculations, I was able to drop the processing time from 200s to 36s. &#60;/p&#62;
&#60;ol&#62;
&#60;li&#62;sum of #students
&#60;/li&#62;
&#60;li&#62;sum of #class trainers
&#60;/li&#62;
&#60;li&#62;sum of #additional trainers
&#60;/li&#62;
&#60;li&#62;(1) + (2) + (3)
&#60;/li&#62;
&#60;li&#62;(4) * 100
&#60;/li&#62;
&#60;li&#62;(5) / 50
&#60;/li&#62;
&#60;/ol&#62;
&#60;p&#62;I wish I'd noticed that before! I just hope the client is still happy with the new compound fields :)&#60;/p&#62;
&#60;p&#62;I still would like to see Gravity Forms improve performance though, as 36s is still pretty horrible, but please let the developers know that things are not as dire as they seemed!&#60;/p&#62;
&#60;p&#62;cheers,&#60;br /&#62;
Ross
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "More on performance of large forms with empty fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/more-on-performance-of-large-forms-with-empty-fields#post-119940</link>
			<pubDate>Sat, 12 Jan 2013 02:03:36 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">119940@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I heard back from the development team.  They're aware of the issue and know there is room for improvement.  Some changes will be added to our next release and fine-tuned after that.  Thanks once again for all your hard work investigating this.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "More on performance of large forms with empty fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/more-on-performance-of-large-forms-with-empty-fields#post-119915</link>
			<pubDate>Sat, 12 Jan 2013 01:06:04 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">119915@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The developers asked me for your original form a couple days ago, so I know they are looking at this.  I will send them your additional information.  Thanks for taking the time to write it up.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>webaware on "More on performance of large forms with empty fields"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/more-on-performance-of-large-forms-with-empty-fields#post-119902</link>
			<pubDate>Sat, 12 Jan 2013 00:46:42 +0000</pubDate>
			<dc:creator>webaware</dc:creator>
			<guid isPermaLink="false">119902@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Further to my post &#60;a href=&#34;http://www.gravityhelp.com/forums/topic/poor-performance-for-large-form-with-lots-of-empty-fields&#34; rel=&#34;nofollow&#34;&#62;Poor performance for large form with lots of empty fields&#60;/a&#62;, I've just about wrapped up a custom plugin that replaces a bunch of fields on this form with some compound fields, thus reducing both the number of empty fields seen by Gravity Forms and the number of fields used in calculations. Doing this has had a dramatic effect on processing time.&#60;/p&#62;
&#60;p&#62;On my dev box, the original form was taking about 200s to process with 120 empty fields, some used in calculations.&#60;/p&#62;
&#60;p&#62;Reducing the number of empty fields by replacing 150 fields (up to 120 empty) with 20 compound fields (up to 16 empty) reduced the processing time from 200s to 75s.&#60;/p&#62;
&#60;p&#62;Rewriting the calculations for this form so that they used server-side calculated totals on gform_pre_render (which was required for the new compound fields -- how many laptops are there in a classroom field?) enabled the calculations to become very simple, just (students + class participants + additional participants), i.e. adding together 3 elements instead of 30. This reduced processing time to 3s. Three seconds. :)&#60;/p&#62;
&#60;p&#62;One of the biggest parts to this is, in my opinion, that GFCommon::get_submitted_fields() is called many times during the course of GFCommon::replace_variables(), and each call requires an iteration over the form's fields triggering any filter hooks applicable along the way. I'm not sure what you can do about that, but it certainly seems to be where a lot of processing time goes.&#60;/p&#62;
&#60;p&#62;Let me know if you need any further information about this from me. I've already sent their original form, so you will have seen what they were doing (and in particular, the calculations involved for the fields on the final page).&#60;/p&#62;
&#60;p&#62;cheers,&#60;br /&#62;
Ross
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
