From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/25086 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Albert Krewinkel Newsgroups: gmane.text.pandoc Subject: Re: build customizability Date: Sun, 03 May 2020 14:39:36 +0200 Message-ID: <87wo5tgpkn.fsf@zeitkraut.de> References: <43e8ce91-0738-4477-bcf5-e826219d9b1d@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="44753"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCZJF7XJTILRBDHXXL2QKGQEWZL3TYI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun May 03 14:39:43 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ej1-f58.google.com ([209.85.218.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jVDuJ-000BZo-B5 for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 03 May 2020 14:39:43 +0200 Original-Received: by mail-ej1-f58.google.com with SMTP id v3sf7324139ejx.8 for ; Sun, 03 May 2020 05:39:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1588509583; cv=pass; d=google.com; s=arc-20160816; b=xRYvefQmgZyYoBgRHF9ITn4yQZyYDksZY4Fmd8+/7ja+t9q39VFiRu4OFgZ2acO9/a SLl8KQivdsgQAiYOI/loHd3XeBDARUFY+EIlAG/1fxF+/RZ0HxMCM8cOiIdsAFdwcNXg KMFcs1uMEGeyXp+zJS+tZnOUnGQUzd6wamvW4QjWI1L0hu7gZA7ceDSS40PNZptkwqXy zVwNrDgzZa3CGmsVj6ZD0ZeogXGUweu4W4svRWu9vq6cnnSVP2s/CEttd17MSFJawL+k 3excX/JIEWo4d8kV1DHpv4BXz4jXTtm48eEdrcsS+1mF37AF453kle1Kq4PsCsRqdMz3 fB9g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version:message-id :date:in-reply-to:subject:to:from:references:sender:dkim-signature; bh=Qm+Kmx+gbwcj+ayV1dP1n+E6T25K/ew+gmzK1Eekakc=; b=mAXJAlS4+x6hE9oasn4tlod3g3rhRrhabBffH5BwLIbv9WbEmM3rf+UjXmuCvmG7IU xfXPoP3zQ9C9iO03vCwV99mJQ5lmCf8E0U08MUcZmqlcsw+41UNXFO3HDkYONOs3I1Hc u3nAXHyf3fNAnMH8jMyQc7XG1mSkpEHqXjOXipwBtyluG7i1TfbvL/KO/KVFRP1hWI/k n176UMRTR5aVAZPGg0/fGTp5HTyaNk+nk4d/YmSXBR6SR6uHlC1sMEAA0G1AExlGImEh vG6c2h7atZsX8ADR77+OSazLFF4E0ojEVIrNDYxEiYgVYGTTXFbbD60iradT+7gmzwie chJQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.172 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeitkraut.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:references:from:to:subject:in-reply-to:date:message-id :mime-version:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=Qm+Kmx+gbwcj+ayV1dP1n+E6T25K/ew+gmzK1Eekakc=; b=Zi5jktVXrqLznO1tNq7YCqslT89Y6nqHT3dL7ejj5Xb1fOX7kgTtuPM54eQPuyQwNr LgsPkIi/6SLmM93ozMsHVRujMrdeyhXnLcb8vbAIcMHZ6zkMAjgM2wgb2dcrSiQnXtMd REdwvmDadm1PaXYdzLdKHeU3VDepSepFG2jT6o+HDDSqRB876nDjAK9noxYRDEKSICR5 5512deXB2SwhJFfTOzJO1ymqPw9+dOsotbxKnOR8MJrpxC5WUVMpO4b2w+Z689nObZ9y rF3fLt6e2zhuVn5XnhRfRL0BvT4eIIiHWDtyG78m31G1Cbz5BFLnnsykT14oy7hSxnzQ 9Ivw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:references:from:to:subject:in-reply-to :date:message-id:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=Qm+Kmx+gbwcj+ayV1dP1n+E6T25K/ew+gmzK1Eekakc=; b=orSTNGhapS+AS99HwuQvYsCmoJWysQg8330tdDwlzWswcp/uyq8lp2vh0rShGhuW5k tGUNKCjEH7414MAHxLHHCpNA1MrYukayBBROYxU0juoM8655FR+1ZZT1FEuRYVDxroy1 VccnbLPJzYYPlvaSsgO5mPT77sqhCWBa0izhPrmY0qsfmoCUQrzKBdvHEDESpmIKNei+ QBKslGgWcx/YSDde7PIJ1vnLj8i/PCvVUt2SM10IJTjIN6xLMhI9FdOREOdpezXFI0oL LhPBVFcKpOqwbZlLyl62qlLmcZ6z3AmHR5x749v/yldoanzwQGQaikgZso3pF7BMCARj qE8A== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AGi0PuY6v8AsgaTESx7E/aydCdF7QrbyCMnXamyqMLPesWBiv6RK95b6 GEiEmKqn///egBcs9J+LlkA= X-Google-Smtp-Source: APiQypJ4HWQTBNtse0yg386lnBsHh56tbz2nG8heUMRkupOYm8ZKViV+EVa8C/1jZt16gOifZN2AoQ== X-Received: by 2002:a17:906:130e:: with SMTP id w14mr10983834ejb.155.1588509583078; Sun, 03 May 2020 05:39:43 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aa7:c3d5:: with SMTP id l21ls4399221edr.0.gmail; Sun, 03 May 2020 05:39:40 -0700 (PDT) X-Received: by 2002:a05:6402:1c07:: with SMTP id ck7mr11082695edb.202.1588509580516; Sun, 03 May 2020 05:39:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588509580; cv=none; d=google.com; s=arc-20160816; b=mVxCGQ4TAp90fBKkvoNCk1/HTiVUJPMGx5xUzqvzhk6XCmu/KLNWERXqt6u3qzXvdN lRGFmgwgTMH/z3M7lqvMxIBBVjSjZPOJQ2pAiBxFFFkjXc5oBuZS4SN6mSKR2wy7qkZM oKcbCBqjstG7RFuiTSoCR8EFiplZcRXZ2fjd7AlMhGXk6b8JDKhYHbHIXWHnEe4ERe5a Hj3cdXy+VOCbl3xjvhULcIfMdA8K0TEpigZXbe9zc4B3jb+DpNt7KgBVBPjcdrH64QQB YkMrWAeP4MLih2pBzUpSNK1Y5etaif1KU071wE1vhBL557pPXawA1huzKgnr3jS0uLrE FVSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:in-reply-to:subject:to:from:references; bh=AMcc48bBNBqn5vGBU9rT7ICfhNHEPl7uabSHZhjkQ+g=; b=hes7DZnHYZjp9IM4UERWuW4uhGJ6abBPCuGUSc47KruzF2I8LgGulr1AgSHS0iFCln RAhvYssREB4IenvcA9dBkdW5gxxHq9/TYdoHSfMMDHLQHtRi8uUtue8vpqKOs6tqQ5Q2 /RcARUsURUbgTyw2v7MyssvYCslFx4bau8t8hJtz2pAWVzGRbdLBGIhJnQEf1GwGvKnO o4gNYkeh/wbofuL+83SCivs41FJBeze8jyao6ZFn1R3H6i4iZOixvW7t/P7bkjfWNfB8 ZaqIOAAhDnSfANML4vnDicd2ZV6C7ywMQpnTTwIoU8faqFtey5tEaU8u3EQ4O9CETEkF 0Q6Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.172 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeitkraut.de Original-Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org. [80.241.56.172]) by gmr-mx.google.com with ESMTPS id bt1si471979edb.0.2020.05.03.05.39.40 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 May 2020 05:39:40 -0700 (PDT) Received-SPF: pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.172 as permitted sender) client-ip=80.241.56.172; Original-Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 49FQY81FS3zQlFn for ; Sun, 3 May 2020 14:39:40 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Original-Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter03.heinlein-hosting.de (spamfilter03.heinlein-hosting.de [80.241.56.117]) (amavisd-new, port 10030) with ESMTP id 3OZL-4Rp3ZAq for ; Sun, 3 May 2020 14:39:37 +0200 (CEST) In-reply-to: X-Rspamd-Queue-Id: 2C33817E0 X-Rspamd-Score: -1.79 / 15.00 / 15.00 X-Original-Sender: albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.172 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeitkraut.de Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:25086 Archived-At: brainchild writes: > This observation leads me to wonder whether it is possible, at least in > principle, to achieve a substantially smaller executable size that offers a > specific selection of the full application's capabilities. I had a look into this some time ago. My conclusion was: while it is possible to arrive at a smaller executable by manually disabling all unwanted code, it is not worth the effort. The question usually arises with the idea of using pandoc for Markdown parsing, outputting various other formats. Many large parsers, like those for LaTeX and HTML, are dependencies of the Markdown reader, so they cannot be removed. The most commonly used writers are also some of the most complex, so there is not that much to gain there either. I seem to remember that, even after removing a significant amount of functionality, I still achieved only a meager 20% reduction in binary size. More aggressive pruning should be able to squeeze out some more percentage points, but the binary will never really be "small". -- Albert Krewinkel GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124