Re: Reading arrays, 3 methods tested, results

2016-07-27 Thread Mark Wieder
On 07/27/2016 01:52 PM, Richard Gaskin wrote: I get very different results here using this script to produce a small sample data set. I would expect them to be different given that Method 1 re-uses a single multi-line key, and Method 3 uses a multi-line key to retrieve a value that in the

Re: Reading arrays, 3 methods tested, results

2016-07-27 Thread Richard Gaskin
Phil Davis wrote: > Hey Richard, > > Wouldn't it give more accurate results to compare arrays without > encoding them, rather than comparing the encoded arrays? Isn't > encoded string way roughly 100% likely to be 'not equal'? Is it? Modifying my code to come up with examples using different

Re: Reading arrays, 3 methods tested, results

2016-07-27 Thread Phil Davis
Hey Richard, Wouldn't it give more accurate results to compare arrays without encoding them, rather than comparing the encoded arrays? Isn't encoded string way roughly 100% likely to be 'not equal'? Thanks - Phil Davis On 7/27/16 1:52 PM, Richard Gaskin wrote: Mark Talluto wrote: >> On

Re: Reading arrays, 3 methods tested, results

2016-07-27 Thread Richard Gaskin
Mark Talluto wrote: >> On Jul 27, 2016, at 12:48 PM, Richard Gaskin wrote: >> >> Thanks, Mark. You know I loves me some benchmarking. :) >> >> Do all three produce the same result? > > Yes. I get very different results here using this script to produce a small sample data set. I would expect

Re: Reading arrays, 3 methods tested, results

2016-07-27 Thread Mark Talluto
Yes. -Mark > On Jul 27, 2016, at 12:48 PM, Richard Gaskin > wrote: > > Thanks, Mark. You know I loves me some benchmarking. :) > > Do all three produce the same result? > > - rg > > > Mark Talluto wrote: > > Thought this might be interesting to those

Re: Reading arrays, 3 methods tested, results

2016-07-27 Thread Richard Gaskin
Thanks, Mark. You know I loves me some benchmarking. :) Do all three produce the same result? - rg Mark Talluto wrote: > Thought this might be interesting to those benchmarking reads on > arrays. I was working to optimize one small section of code in > our database and found that the method