Welcome Guest, Not a member yet? Register   Sign In
HEREDOC statements (And the EE Dev Guidelines)
#1

[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?
#2

[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...




Theme © iAndrew 2016 - Forum software by © MyBB