#54091Use === operator instead of strlen() to check for zero length strings
Description
Use the === operator instead of the strlen() function to check for strings of length zero.
This can give a performance improvement of factor 3.
Short note: Although some source claim that strlen() has O(1), for some reason the comparison against an empty string is still faster.
Nevertheless, besides the possible performance improvement, this change also improves readability.
Reviews 7
- TYPO3_8-7 56320[BUGFIX] Test ifBlank with strlen again
- main 56305[BUGFIX] Test ifBlank with strlen again
- main 40244[BUGFIX] CONTENT cObject slide does not loop
- main 27794[CLEANUP] Replace strlen() with === for zero length check
- main 39625[BUGFIX] Add missing (string) cast in dbal/DatabaseConnection
- main 28017[CLEANUP] Replace strlen() with === for zero length check
- main 27091[CLEANUP] Replace strlen() with === for zero length check