Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp4010529pxy; Tue, 4 May 2021 15:30:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZdM+SAgpJAUTfMw0CULtP4tHh4JszlfmXfTSeK6r+UHpqR8RzvnTy3hdZToSQKShgM5Bh X-Received: by 2002:a50:f293:: with SMTP id f19mr5687318edm.110.1620167453285; Tue, 04 May 2021 15:30:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620167453; cv=none; d=google.com; s=arc-20160816; b=xnSE5q25cu1wiG/VGePc74oP0p4bAIFOKf6HwYgk1wvfqRQkyW+byI0Vgc24rz/YWq XKclzA45syUMtxzhTmiH1uL4rwPV7BMu4NQGb8AyoMxqpCuTTeGri2PiT1AV1x/a1kC1 oJ/rriaTLO6dlj0mcgdMArygMWLrKMXJ4iFphBt+KgDf535oM71ye9Ky9EZq7ScWdG90 f3PZp41MXyIYluuJ6/TP9GGdwkaJT04MeIBtsIVIeLBfUXvRU9OXxrJB9arA8yZJ5XUR BIsogiYHqW4ZJJEYveUut4AQyveOODWXqXO/BuDXJu3VLEejz6O/IFsd+lzxVKLnyS6S RXxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Rvtc4dyMiADMF+m7+qY/GWjUxbRAuv1Uh1ldPKNJtaY=; b=Z1JCB28gxGLW+YDG64tLOLeC59VoF6Pem5lRnIr7ravcV+tOhRFxXCDcB/YZF6EJlP lgV7pjugzrPjV2zFBJmJU+XZ9tifEOCf3LBePZufCXyNE2PGw3n+sNiS7ezGr+pa/Mcg P1vVPg63ncupqKh3XxzItwpUuyeTZFRXhtyPlgufOrumzjA2K44fbtfCx77t4AKl6h9d bU1qXS4Ppa/MQnb5Lfn5j+aASf3ynwVOqXmuG6fbqmRo4KOmy2ryMFbDu6h2uYwpvgiu UTBuL8ABwly1uWiiFLxYlt2brqzC9Zw+Lx1wh2w4Msikxa7HOSCaJQ/vWDMOL8M9UM5W hUUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=J9eoEftl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q23si36214ejy.319.2021.05.04.15.30.28; Tue, 04 May 2021 15:30:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=J9eoEftl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232804AbhEDWDm (ORCPT + 99 others); Tue, 4 May 2021 18:03:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232797AbhEDWDl (ORCPT ); Tue, 4 May 2021 18:03:41 -0400 Received: from mail-yb1-xb2a.google.com (mail-yb1-xb2a.google.com [IPv6:2607:f8b0:4864:20::b2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02858C061574 for ; Tue, 4 May 2021 15:02:45 -0700 (PDT) Received: by mail-yb1-xb2a.google.com with SMTP id e190so28755ybb.10 for ; Tue, 04 May 2021 15:02:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Rvtc4dyMiADMF+m7+qY/GWjUxbRAuv1Uh1ldPKNJtaY=; b=J9eoEftlm7XfM8y31wTf2+SAv+LT4MdLHh/W83JFpd8qSdJCNgtX9kDOM6bL1kH3wJ VR7qAwn3C3DWd5BgpG0ahw2h6eC6PtqyqUbgLg5UpBfSkJTdeLMyfSNYOwT6Vux2RC3S cwHNtg6JYySVdmii1H5AVhhYTHhXknxJekLNkkJwupONYk1pEGa+CXURhcDpbsud/6bk BkDfedTCh8ykcl+haBo7NsuAnH920j5LR4oha7E5Co9sP3rTsW20+KzQNkoeActOEeJw 1TsAZU7Hu0ZQtwST4nhfgT/092W1rLNssGLhQMOR0T0DrYrVS/BQTI4qNxlkI7dmnXuc G/Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Rvtc4dyMiADMF+m7+qY/GWjUxbRAuv1Uh1ldPKNJtaY=; b=f7cdEFGec4DN0UeMzr3xaPvmKPflzn1wkK6I3eL6n0G8z60D/wOH/39qJGQQlHFwdF v+KsSswPVKyK4Wx/Qqsy+rVRcMAx1YwVn74jq5rl/ZMKlZfcrzpdAN0zk7X652lT2HFk kp6Da67r45STXGxtNSPfNGDcvi/g2L+E8XEVWyyH/CWbf9HX/gHLJOomxBkeQaWOgD5U Dgfu572HMA6b9VjPw3+pL1LEqMQd9E7OfDhQKkbXH6WO+ZqP/DNWb9/T7b84Knht9ek9 vsA+ZRJzgi1ENHzKMsmwNoC6yn3OsQDwBqQAx9qq1BjxXXU+1a0zeXGTw+5ILuD+mAWl 5KLQ== X-Gm-Message-State: AOAM530R5JaFynLgODqoJ5Iz7MTYEThF9+wVbE+1m4irQPQ1x/VjhRHJ lVFUo6lGD8W/jEbLvsBRTZNVFnW3nLggeibQvmU= X-Received: by 2002:a25:d45:: with SMTP id 66mr14776555ybn.93.1620165764361; Tue, 04 May 2021 15:02:44 -0700 (PDT) MIME-Version: 1.0 References: <1c5e05fa-a246-9456-ff4e-287960acb18c@redhat.com> <20210502093123.GC12293@localhost> <20210502164542.GA4522@localhost> <20210502175510.GB4522@localhost> <20210502214803.GA7951@localhost> In-Reply-To: <20210502214803.GA7951@localhost> From: Miguel Ojeda Date: Wed, 5 May 2021 00:02:33 +0200 Message-ID: Subject: Re: Very slow clang kernel config .. To: Adrian Bunk Cc: Linus Torvalds , Tom Stellard , Nick Desaulniers , Masahiro Yamada , Nathan Chancellor , Linux Kernel Mailing List , clang-built-linux , Fangrui Song , Serge Guelton , Sylvestre Ledru Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 2, 2021 at 11:48 PM Adrian Bunk wrote: > > Library packages in ecosystems like Go or Rust are copies of the source > code, and when an application package is built with these "libraries" > (might even be using LTO) this is expected to be faster than using > shared libraries. Rust libraries only need to include "copies" for generics; and only enough information to use them. Keeping the raw source code would be one way of doing that (like C++ header-only libraries), but it is not required. However, it is true that Rust does not have a stable ABI, that the vast majority of Rust open source applications get built from source via Cargo and that Cargo does not share artifacts in its cache. Cheers, Miguel