Agree with the JSON and JS ideas promoted here - you send the information necessary for your calculations and validation in a harsh format, and it will not be sent back.
This provides a direct means of accessing your data, rather than some jQuery / DOM search, to get your hidden field values, increasing computational performance.
If you're talking about performance in terms of load and rendering times, and if the client-side JSON representation of your data is huge, then your only other option is to make AJAX calls to do server-side computing and validation, so your large dataset never moves down the wire in any direction. Be careful though round-trip AJAX time to get a response from the user.
source share