X-Original-To: bind9-public@bugs.isc.org content-type: text/plain; charset="utf-8" Subject: When rendering an rdataset towire, re-use the name compression offset Return-Path: Content-Disposition: inline Date: Thu, 17 Aug 2017 13:13:09 +0530 From: "Mukund Sivaraman" Delivered-To: bind9-public@bugs.isc.org MIME-Version: 1.0 Received: from mx.pao1.isc.org (mx.pao1.isc.org [IPv6:2001:4f8:0:2::2b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx.pao1.isc.org", Issuer "COMODO RSA Organization Validation Secure Server CA" (not verified)) by bugs.isc.org (Postfix) with ESMTPS id 18D7ED78AE9 for ; Thu, 17 Aug 2017 07:43:19 +0000 (UTC) Received: from mail.banu.com (mail.banu.com [46.4.129.225]) by mx.pao1.isc.org (Postfix) with ESMTP id 0ECAF34A0F3 for ; Thu, 17 Aug 2017 07:43:16 +0000 (UTC) Received: from jurassic (unknown [115.118.211.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.banu.com (Postfix) with ESMTPSA id 670FA56A0815; Thu, 17 Aug 2017 07:43:13 +0000 (GMT) User-Agent: Mutt/1.8.3 (2017-05-23) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mx.pao1.isc.org To: bind-suggest@isc.org Message-ID: <20170817074309.GA13444@jurassic> X-RT-Incoming-Encryption: Not encrypted X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,RCVD_IN_SORBS_WEB autolearn=no autolearn_force=no version=3.4.0 From muks@isc.org Thu Aug 17 07:43:19 2017 X-RT-Original-Encoding: ascii X-RT-Interface: Email Content-Length: 199 When writing an rdataset to wire, re-use the name compression offset from the second RR onwards instead of attempting to find compression table matches for every subsequent RR in the set. Mukund