Exercise/FOQElasticaBundle — comment on commit a3f4c95e9c1e8ef9370072948c9b5ca52a5c6e4e
File: Transformer/ModelToElasticaAutoTransformer.php line 91
By stof:

we did a small benchmark recently about this when the question was asked for Symfony. Whereas the simple call to ``array_filter`` is indeed faster than looping over the array and doing an empty check, it is not true anymore when you use a closure (this makes far more function calls and they are expensive)