more changelog updates/cleanups

This commit is contained in:
Harald Hope 2021-07-19 13:22:03 -07:00
parent efe175fc9f
commit 6b3c4c6517

View file

@ -4141,13 +4141,15 @@ bit of a refactor of the partition type logic, enhanced by adding mapped to
existing types, and moved the entire type detection block into the main data
generator, and out of the data line constructor.
Optimizations:
1. Tested, and dumped, List::Util first() as a possible way to speed up grep
searches of arrays, where the goal is just to see if something is in an array.
My expectation was that first(), returning the first found instance of the
search term, would of course be faster since it will always exit the search loop
was met with the sad fact that first() is about 2 to 4 times SLOWER than grep()
native builtin.
--------------------------------------------------------------------------------
CODE:
1. Optimizations: Tested, and dumped, List::Util first() as a possible way to
speed up grep searches of arrays, where the goal is just to see if something is
in an array. My expectation was that first(), returning the first found instance
of the search term, would of course be faster since it will always exit the
search loop was met with the sad fact that first() is about 2 to 4 times SLOWER
than grep() native builtin.
I tested this fairly carefully, and used NYTProf optimizer tool and the results
were totally consistent, first() was always much slower than grep(), no matter