Jens Schulze

Results 76 comments of Jens Schulze

I think the main impact in terms of performance of the compiled code comes from the OpCache. The compiled code will be hold in the shared memory of the OpCache....

The prepare function is doing exact the same things. Write it to a temp file and include the code. See https://github.com/zordius/lightncandy/blob/5f8dc549e834cee6080b3820f71f1076084fe8ea/src/LightnCandy.php#L152-L157

You could create a small function or Helper class and copy the prepare method in case you need it. This will ensure that you have to the control. And I...

Or that at least a sane value should be used: https://github.com/brefphp/bref/blob/master/runtime/layers/fpm-dev/Dockerfile#L32

Actually garbage collection should still kick in even with the `memory_limit=-1` as it's only relying on the number of objects which have been fallen out of scope reach a treshold....

Btw when you would use a NOW() SQL function in the query. The query would not change anymore with every request.

It is. Cause it's by intention that the result should only be updated every 15 minutes. But it's a bad idea in SQL to use parameters where the DBMS supports...

@Ocramius when changing the query to the following: ``` $qb->select('v') ->from('Packagist\WebBundle\Entity\Version', 'v') ->where('v.development = false') ->andWhere('v.releasedAt < NOW()') ->orderBy('v.releasedAt', 'DESC') ->setMaxResults($count); ``` @Seldaek would never have run into this issue,...

@Seldaek Okay have to admit, I didn't tried the snippet with doctrine. Tested it now and I see what was the problem. As Now is mysql specific, the doctrine query...

Yep. Only improvement would be, that you could use the doctrine result cache again.