BIND 10 #536: Make OutputBuffer more lightweight
BIND 10 Development
do-not-reply at isc.org
Thu Apr 7 10:50:28 UTC 2011
#536: Make OutputBuffer more lightweight
-------------------------------------+-------------------------------------
Reporter: vorner | Owner: shane
Type: task | Status: reviewing
Priority: major | Milestone:
Component: | Sprint-20110419
DNSPacket API | Resolution:
Keywords: | Sensitive: 0
Estimated Number of Hours: 7.0 | Add Hours to Ticket: 0
Billable?: 1 | Total Hours: 0
Internal?: 0 |
-------------------------------------+-------------------------------------
Changes (by vorner):
* owner: vorner => shane
Comment:
Hello
I pushed fix for the 0-length bug. Is it OK?
About the bit shifts, for one, bit shifts are really fast. For another,
this is a place where even the ancient compilers were able to optimise,
because there are no sideeffects and everything is just local finding of
instructions doing the same (I've seen gcc do things like replacing
strcpy(string, "hello"); with two MOVs). So I would just stay with
whatever is the most readable, but if you like, we might try read the
generated assembler if it ends up the same ;-).
I'll create the ticket, but I don't know if it really is full 50%. It
looks more like 25% to me ;-).
Thanks
--
Ticket URL: <http://bind10.isc.org/ticket/536#comment:11>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list