• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
most efficient way of loading views

#2
[eluser]TWP Marketing[/eluser]
This is just an opinion.
I use something like your controller 1, passing superfluous data to some views which don't actually use it.
I agree that the technique in controller 2 results in faster rendering of pages. As a lazy coder, I don't always take the time to sort my data and pass only as much as needed for each view. Slap on the wrist for me...
Justification: The amount of date being passed is small, usually. The data array is passed by reference, hence the server isn't being beaten on as much as a full data copy would cause.
I look forward to hearing for others on this topic.


Messages In This Thread
most efficient way of loading views - by El Forum - 08-07-2012, 10:50 AM
most efficient way of loading views - by El Forum - 08-07-2012, 12:06 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.