]> granicus.if.org Git - pdns/commit
Be smarter about trimming whitespace when creating records from ASCII
authorbert hubert <bert.hubert@netherlabs.nl>
Wed, 23 Jan 2019 20:03:21 +0000 (21:03 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Wed, 23 Jan 2019 20:03:21 +0000 (21:03 +0100)
commit13653a1a39323fd6e360e0ac46296606a81c848a
tree944d2d11872428ec1c2c7b1dbb9af50458e8741f
parent8f5923633d8d83b1d730dc8f808924bfa872efc8
Be smarter about trimming whitespace when creating records from ASCII

In ff7ac440afdae4370e12a1b9eb21d4b1389a861f we added trimming of whitespace,
so you could turn " 1.2.3.4 " into an A record 0x01020304. This commit made us more flexible
but also six times slower in some microbenchmarks.

This commit restores the old performance which shaves double digits percentages of time from many
benchmarks in 'speedtest', while making "make-a record" six times faster again.
pdns/rcpgenerator.cc