Changes between Initial Version and Version 1 of Ticket #18007, comment 8
- Timestamp:
- 10/08/2012 07:51:29 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #18007, comment 8
initial v1 3 3 [attachment:18007.2.patch] is a more complete patch using `substr()`. 4 4 5 [attachment:18007.2.alt.patch] is an another take using `count( str_split() )` instead of `strlen()`.5 [attachment:18007.2.alt.patch] is another take using `count( str_split() )` instead of `strlen()`. 6 6 7 7 Unfortunately, a quick test with 3 000 000 iterations of `is_serialized()` showed that `substr()` is about 2 times slower than direct access, and `count( str_split() )` is 3 times slower than `strlen()`: