diff options
| author | Gergely Nagy <algernon@balabit.hu> | 2012-04-16 00:25:46 +0200 |
|---|---|---|
| committer | Gergely Nagy <algernon@balabit.hu> | 2012-04-16 00:25:46 +0200 |
| commit | 142f411b1305d4c9857532f66e61a895604160a9 (patch) | |
| tree | 5533070acacfa7e06ab9dc361f896bd5cc8e8976 /lib/buffer.h | |
| parent | 0f62005ae51954abd2c1e3eeb30c11c3877bbe07 (diff) | |
Improve string escape performance a little
Instead of escaping a string, returning a new one and running strlen()
on that, use an output variable to store the length, since we can
easily calculate that during the escape process anyway.
This should shave off a tiny bit of CPU time.
Signed-off-by: Gergely Nagy <algernon@balabit.hu>
Diffstat (limited to 'lib/buffer.h')
0 files changed, 0 insertions, 0 deletions
