Am 29.06.2017 um 11:25 schrieb Marco Pivetta:
On Thu, Jun 29, 2017 at 11:19 AM, li...@rhsoft.net
<mailto:li...@rhsoft.net> <li...@rhsoft.net <mailto:li...@rhsoft.net>>
wrote:
in other languages like Visual Basic constants are fast, in PHP they
are slow, both in define and access
Two things here:
1. don't ever consider visual basic for any comparison of any sort:
it's basically (ha!) the worst example of a programming language that I
can think of before malborge
stop it - many people say the same about PHP
2. speed is not relevant in this scope: program correctness is. Final
properties would allow switching value object representations from
accessor (getter) based logic (extremely slow) to public property based
(less overhead, also in writing)
in which scope is speed not relevant?
depends on your application, in my scopes i try to avoid expensive
opcodes and useless function calls, program correctness is a completly
different thing and it's not one or the other but both
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php