Skip to content

Conversation

@stloyd
Copy link
Member

@stloyd stloyd commented Oct 7, 2023

Change Log

Added

Fixed

Changed

  • Prevent using `strlen` & `count` on empty input

Removed

Deprecated

Security


Description

Reference:

#1
Time taken for strict comparison: 0.00032615661621094 seconds
Time taken for count function: 0.00045299530029297 seconds
#2
Time taken for strict comparison: 0.0095489025115967 seconds
Time taken for count function: 0.012413024902344 seconds
#1
Time taken for strict comparison: 0.018247127532959 seconds
Time taken for strlen function: 0.019370079040527 seconds
#2
Time taken for strict comparison: 0.014430046081543 seconds
Time taken for strlen function: 0.023833036422729 seconds

@stloyd stloyd force-pushed the optimize-strlen-count branch from faeb0ba to 014f639 Compare October 7, 2023 13:37
@norberttech norberttech merged commit 4822eb3 into flow-php:1.x Oct 7, 2023
@stloyd stloyd deleted the optimize-strlen-count branch October 7, 2023 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants