The uid() helper is sluggish and can be improved #6188
Labels
package:utils
type:improvement
This issue reports a possible enhancement of an existing feature.
type:performance
This issue reports a performance issue or a possible performance improvement.
📝 Provide a description of the improvement
A follow-up of #6161 (comment).
As @Reinmar find out
uid()
takes a lot of time to execute and is used virtually everywhere in the codebase (collections, emitters).I tested and 1000000 executions of our current
uid()
helper takes around 3s to executewhile it can be improved down to 350ms (~10x less, see the PR):
If you'd like to see this improvement implemented, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: