zotonic/zotonic — Issue #267: action_base_update: remove data duplication in generated postback
Author: helllamer
Created: 2011-11-24 12:34:26+00:00
State: open

{% wire id="trigger"
action={update templat="template.tpl"
target="xyz"
var1="value1"
var2="value2"} %}

**action_base_update** generates following postback:

{undefined,"trigger","xyz",
{render,insert_bottom,
{render,"template.tpl",
[{target,"party_topics"},
{template,"template.tpl"},
{var1,"value1"},
{var2,"value2"} ]},
[{target,"party_topics"},
{template,"template.tpl"},
{var1,"value1"},
{var2,"value2"} ]},
action_base_update}

It is only **action_base_update**'s postback, not wire result at all. Summary:

- *template* and *target* pickled 3 times
- Args list pickled 2 times
- ~400 bytes in base64

It will be good to save CPU cycles and traffic, because outer Args list almost unused.