R: [Phplib-users] coding style concerning strings
Brought to you by:
nhruby,
richardarcher
From: Gaetano G. <giu...@se...> - 2002-09-25 07:58:17
|
>=20 > Hi, >=20 > I noticed that a lot of code doesn't seem to take care of the=20 > difference > between string definitions using "" or ''. As far as I=20 > understood all the > strings enclosed with "" will be preprocessed by a parser,=20 > ''-strings stay > untouched. So the latter can speed things up. >=20 > There are many libraries written only with "", but perhaps they'd be > faster with the ''-version? Any experience with this? >=20 > Marko >=20 Forgot where exactly (the link should be somewhere on = http://php.weblogs.com), but there were some tests done recently by = someone (?) that showed an absolutely irrelevant difference in speed = changing quotes. The tests also stressed speed differences in other areas of php where = different syntax can be used. DISCLAIMER: I have done my stats studies, andI know tests have to be = done on different OS, different php.ini etc... to be of any value. |