HEREDOC statements (And the EE Dev Guidelines) - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: HEREDOC statements (And the EE Dev Guidelines) (/showthread.php?tid=5085) |
HEREDOC statements (And the EE Dev Guidelines) - El Forum - 01-04-2008 [eluser]awpti[/eluser] I noticed in the EE Addon Developer Guidelines it's stated that HEREDOC usage should be avoided because it is inefficient (processing-wise) and uses up a larger chunk of memory. None of my testing can confirm the veracity of that statement. Over 10,000 loops, HEREDOC is consistently faster. Memory usage is very close (heredoc uses a smidge more) Is this statement from the EE Addon Dev Guidelines just blatantly wrong or is this only true in the EE Development env? HEREDOC statements (And the EE Dev Guidelines) - El Forum - 01-05-2008 [eluser]maadmac[/eluser] [quote author="awpti" date="1199527546"]Is this statement from the EE Addon Dev Guidelines just blatantly wrong or is this only true in the EE Development env?[/quote] Good question. Derek? If so, they've contradicted themselves, inasmuch as both the EE forum and membership modules consist of virtually nothing but returned HEREDOC strings... |