« first day (2169 days earlier)      last day (2776 days later) » 

11:02 PM
Is it safe to just copy over my php.ini from the previous install?
 
3 messages moved to bin
 
Wait no the extensions directory won't be happy
 
11:23 PM
wow. good job @room, that star board is a real piece of art
 
it's my fault :/
 
you did great
I just wish the numbers did 14 descending (14 - 13 - 12 - 11, y'know), I would frame that
 
can't un-star, soz
 
whoa
get_object_vars() is much quicker than I expected
the overhead of an internal function call is pretty small?
stdClass with non-numeric keys get_object_vars(), 100000000 iterations:
* 8.5328550338745s
stdClass with numeric keys to array cast, 100000000 iterations:
* 6.697646856308s
stdClass with numeric keys get_object_vars(), 100000000 iterations:
* 8.2564191818237s
stdClass with numeric and non-numeric keys to array cast, 100000000 iterations:
* 6.6480579376221s
stdClass with numeric and non-numeric keys get_object_vars(), 100000000 iterations:
* 8.406998872757s
this is probably PHP7's fault
 
11:30 PM
What about classes with pre-defined properties? stdClass is the edge-edge-edge-case scenario
 
@Ocramius oh, I'm getting to that next
 
( psst: would love to see that as part of the benchmarks in github.com/Ocramius/GeneratedHydrator )
 
@tereško it might've been my fault mentioning actually
 
also I just realised this benchmark is actually broken
 
hmm
 
11:31 PM
@Andrea tip: phpbench
so you don't spend time on stuff like standard deviation, etc
 
@Ocramius the problem is the code I'm benchmarking, not the benchmark bit :p
 
@Andrea it's not broken, if you can extract a conference talk from that :D
 
yeh, that I figured
 
... then again, you might have this unfortunate character flaw, that's so common in this room, of not being willing to publish bullshit
it really fucks with ones plans to buy a willa in spain as a summer home
 
11:34 PM
oooh, waiiiiit.... does get_object_vars() rely on the current scope?
like... can I use it for stuff like closures bound to other levels of the inheritance?
/me puts together an 3v4l
 
@tereško the dictionary is correct, but also wrong
(imo “literally” isn't special, the same exaggeration is applied to similar words)
@Ocramius I… think so?
 
/me giggles
oooooooh yes 3v4l.org/XIJcS
I feel like a kid with a new toy
 
$ php ../benchmarks/array_object_casting.php
php - array/object benchmark
---
Array with string keys to object cast, 100000000 iterations:
* 12.473519086838s
Array with integer keys to object cast, 100000000 iterations:
* 13.85891699791s
Array with string and integer keys to object cast, 100000000 iterations:
* 12.533285856247s
stdClass with non-numeric keys to array cast, 100000000 iterations:
* 6.7059950828552s
stdClass with non-numeric keys get_object_vars(), 100000000 iterations:
* 9.0049290657043s
(fixed benchmark)
 
it's still fast
 
11:38 PM
@Ocramius ^^
@Ocramius we should be afraid, we should be very afraid
 
are the properties randomized?
 
Yes, you should be afraid
MWAHAHAHHAHAHA
 
@tereško in the benchmark? no, same set each time
 
maybe they get cached somewhere
<= not a core dev, just making a blind guess
 
dumb question, but... before you go forward, you sure there's no xdebug?
(may sound obvious, but I did it wrong in the past, without noticing)
 
11:41 PM
@Ocramius I've never installed it on my system :x
 
kk
 
blasphemy
 
I once installed it on someone else's, to diagnose why their IMAP client was taking seconds to render
 
<insert burn-the-witch meme>
 
the call graph was taken up 98% by freads on the socket
 
11:46 PM
I basically spend most of my day step-debugging through a behat e2e browser-based test suite these days
 
@NikiC I think your teenage rebellion is coming a bit late
 
It's never too late. Look at Stas, he never overcame this phase.
this is noice externals.io
 

« first day (2169 days earlier)      last day (2776 days later) »