0

I would know what is the best between this element to charge information (speed) ?

test.php
define('HEADING_TITLE', 'Groups');

test.php
const HEADING_TITLE = 'Groups';

const > define : sur on that (speed)

txt > const : what do you think ?

Yoko
  • 27
  • 1
  • 7
  • 1
    **WHAT?????** Have another try at asking the question whatever it is – RiggsFolly Oct 19 '16 at 15:13
  • [const is faster](http://stackoverflow.com/a/2458276/4233593) – Jeff Puckett Oct 19 '16 at 15:14
  • Who gives a flying duck about saving a nanosecond in that particular case? – iSS Oct 19 '16 at 15:31
  • 1
    If this you're at the level of performance where this is your biggest concern, you must have a very impressive system – Mark Baker Oct 19 '16 at 15:33
  • As others have said, this doesn't matter, as any speed difference will be meaningless. Much better to find the *real* bottlenecks (function calls, DB queries, etc.) that actually take up time – Pekka Oct 23 '16 at 21:12

0 Answers0