Issue Task Closed

#80283Use direct array assignments instead of array_push

Cedric Ziel 03/15/17, 11:02 updated 10/17/17, 23:30

Description

This is a micro optimization, since array_push is slower than direct assignments.

Direct assignments are also more readable than array_push. Occurrences with only one element in the value list should be changed to direct assignments.

Tiny little benchmark, just in case someone wants to have a look: https://3v4l.org/tk351

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.