https://fedorahosted.org/389/ticket/310
https://fedorahosted.org/389/attachment/ticket/310/0001-Trac-Ticket-310-A...
Fix description: removed unnecessary escape_string calls and the
static buffer used by escape_string.
Ran slamd repeatedly (BIND+SEARCH+UNBIND from 4 threads in 10 min.), but I
could not get the good evidence that No escape_string improves the
performance. Please note that the bind dn contains ascii characters and
digits only. The following is the average of 5 repeated attempts each.
[With escape_string]
Total_Duration Total_Count Avg_Duration AVG_Count/Interval
--------------+-------------+-------------+-------------------
2395787.2 2404987.0 0.998 40083.117
--------------+-------------+-------------+-------------------
[No escape_string]
Total_Duration Total_Count Avg_Duration AVG_Count/Interval
--------------+-------------+-------------+-------------------
2395570.8 2314081.2 1.045 38568.020
--------------+-------------+-------------+-------------------