summaryrefslogtreecommitdiff
path: root/mathoms.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2016-12-05 09:37:36 +0000
committerDavid Mitchell <davem@iabyn.com>2016-12-05 11:54:03 +0000
commit1eb7a0dec318d22fee300bd4348df9d7c80e2a2a (patch)
tree22e30b1226716d0b3fce3cb4d15769b12b7b8092 /mathoms.c
parent0f8490d1d7ad76cac844fc2ae882994e38aaf2ef (diff)
downloadperl-1eb7a0dec318d22fee300bd4348df9d7c80e2a2a.tar.gz
optimise Perl_sv_gets(): use memchr() for loop
The inner loop which searches for the next separator character and copies buffer bytes: replace with memchr() and Copy(). These functions are likely to be optimised to use whatever hardware facilities are available. (But first check that the first char in the buffer isn't the separator: blank lines are quite common, and we can skip the overhead of calling memchr() in that case).
Diffstat (limited to 'mathoms.c')
0 files changed, 0 insertions, 0 deletions