Usually I call the POST method directly $_POST but if I assign the $_POST variable in new variable will the process speed faster? for example
method 1
/* $this->input->post('name') */
$this->db->where("name=".$this->input->post('name'));
$this->db->update(table, $this->input->post('name'));
$this->session->userdata(array("formdata", $this->input->post()));
method 2
$name = $this->input->post('name');
$this->db->where("name=".$name);
$this->db->update(table, $name);
$this->session->userdata(array("formdata", $this->input->post()));
Which method process faster?
Note: Sorry I don't understand how the process work in depth. I've around 30 input. Above query is just an example. There are multiple filter and processing section before sql insert/update. From what I know $_POST is a function and it take more resource than variable/array. I think using variable or array make the processing speed faster.a