Thread: array_map speed
View Single Post
Old 01-09-2008, 11:34 PM   #1 (permalink)
TlcAndres
The Addict
 
Join Date: Nov 2007
Posts: 264
Thanks: 2
TlcAndres is on a distinguished road
Default array_map speed

Maybe it's just me but I was doing a test and found a normal loop to be faster then array_map (atleast in my case)..here are some of the speed results...

1) looping through an array and using mysql_real_escape_string() on each value

2) using array map with mysql_real_escape_string();

0.000141
0.00068


0.000161
0.000702

0.000351
0.001889

sorry if this has been pointed out before.
TlcAndres is offline  
Reply With Quote
The Following User Says Thank You to TlcAndres For This Useful Post:
Wildhoney (01-10-2008)