Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2864168ybl; Sun, 8 Dec 2019 02:26:05 -0800 (PST) X-Google-Smtp-Source: APXvYqzk/mzXZOjkv3pnOanl5AkfKg6401mxGPmLlCWuTYmEFfHXlORppGqjVSgbTuqXDhj3OBbV X-Received: by 2002:aca:c646:: with SMTP id w67mr19399245oif.171.1575800765822; Sun, 08 Dec 2019 02:26:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575800765; cv=none; d=google.com; s=arc-20160816; b=PQ01MNmnmTLeksny+z1eep8sPwAzeO5UGQoFnF+5UPolIXFry3bAfkNdxGRk5S8LVj p6QqJhh9Oy60HheLz8nrf7RFRhgtb2IZNnGodQowf9hFCcRMsdME/4q/PuyS+veGaqCr 0sBBMLy5Mtfh9uQepYulCuhOcvYbkI+wKgXxGa32KQ+4wlcp21xtPxfjPSmyGaKLv+7R R4Qg/aUQwdnSEfYzNjVL6Og7TEwGxJSOJDiIJO8zB8cJuO/TiF6egXC68z7+ulvIVTyV Q4h5wzTYe8RWIo9pbNtBr457/nlK3cV6CA9yl0OPwCAiAwzxuTgl6JRXTZfjOqGc0MRV u5eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=edkmeJD6U0sQp3796A16IbSY65tEacf4gohTy80G89U=; b=zGWOvdIzPnnuE8A1aClZuOgXYLyj5OvmuDOYdqTxvgzb1WmuSB8EA9n6doBv9Hp7us DcJqNAHNekUtAWvCWfk4jfj50hXnW/BF07Bb6+WxArDTcwwvZNcKfRohZnYxv06OLWGZ Fjme4BgOZdXH3ZH6/6CuMtJJYYPkuMxropAYkbXuf0/94mJx5QYtHI+GAP0cRMmAwldF d1I+hctPi6LB7I6Xw6DoLh8CJ/76Phq66ANf/ie1Y6zYNbKnrb7RToFEL1/vjWatCdQM c2if2/ZkelztuxkTigFqJQjXaiNS1BKH0+nIAbXPyKfqVNpKk8dreB3JKVql+VSmIi2c KUSg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j18si9028155otq.275.2019.12.08.02.25.39; Sun, 08 Dec 2019 02:26:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726220AbfLHKZ0 (ORCPT + 99 others); Sun, 8 Dec 2019 05:25:26 -0500 Received: from mail.phunq.net ([66.183.183.73]:53070 "EHLO phunq.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726202AbfLHKZZ (ORCPT ); Sun, 8 Dec 2019 05:25:25 -0500 Received: from [172.16.1.14] by phunq.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128) (Exim 4.92.3) (envelope-from ) id 1idtkg-000500-DD; Sun, 08 Dec 2019 02:25:22 -0800 Subject: Re: [RFC] Thing 1: Shardmap fox Ext4 To: "Theodore Y. Ts'o" Cc: linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, OGAWA Hirofumi References: <176a1773-f5ea-e686-ec7b-5f0a46c6f731@phunq.net> <20191127142508.GB5143@mit.edu> <20191128022817.GE22921@mit.edu> From: Daniel Phillips Message-ID: <3b4d380f-cb33-b0fb-2426-67109875ce77@phunq.net> Date: Sun, 8 Dec 2019 02:25:22 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191128022817.GE22921@mit.edu> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On 2019-11-27 6:28 p.m., Theodore Y. Ts'o wrote: > The use of C++ with templates is presumably one of the "less so" > parts, and it was that which I had in mind when I said, > "reimplementing from scratch". The templates were removed without reimplementing from scratch: https://github.com/danielbot/Shardmap/blob/master/shardmap.h#L88 https://github.com/danielbot/Shardmap/blob/master/shardmap.cc#L82 The duopack/tripack facility, central to Shardmap efficient scalability, are now just ordinary C code that happens to be compiled by a C++ compiler. I think the machine code should be identical to what the templates produced, though I did not verify. This was a strictly mechanical conversion, less error prone than reimplementing from scratch I would think. I expect the rest of the back conversions to be similarly mechanical. Regards, Daniel