From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.devel Subject: Re: Has eval-and-compile changed in emacs 27? Date: Fri, 26 Feb 2021 09:09:28 +0000 Message-ID: <87pn0ndwl3.fsf@tcd.ie> References: <83eeh3qn63.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4080"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: sdl.web@gmail.com, rms@gnu.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Feb 26 10:10:29 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lFZ8n-0000xu-M4 for ged-emacs-devel@m.gmane-mx.org; Fri, 26 Feb 2021 10:10:29 +0100 Original-Received: from localhost ([::1]:42116 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lFZ8m-0005WH-P6 for ged-emacs-devel@m.gmane-mx.org; Fri, 26 Feb 2021 04:10:28 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55544) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFZ7y-000500-1A for emacs-devel@gnu.org; Fri, 26 Feb 2021 04:09:38 -0500 Original-Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:36078) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lFZ7t-0006dc-P4 for emacs-devel@gnu.org; Fri, 26 Feb 2021 04:09:37 -0500 Original-Received: by mail-wr1-x42c.google.com with SMTP id u14so7845472wri.3 for ; Fri, 26 Feb 2021 01:09:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=6BVPR9JKvlyMbzhDj8IrQvXVsYe2G91lSnLKrXCJ6i4=; b=AeKvNTnP3yXIaNLxZWpV6zkNR/u7njer1NZgTb1FRqXPJwo8FInE31bEBn4tVhkOtV fYSpn+s3XtaCI6MWiTkdVYugIQXPklxx3/IlE0MMNHt8uh9agByt2AjxkycPbdZ+aaOy G152YA/ieSM17TvL01omfrhYirIGj4XMmXmMKUGM832y/mcpA6rwSbHJtaMz27HzgaWy zgSMiOdKLYa7jZHXMPorgAA+maessk4Yx2thoWR31RcFCoT5xT5XAE3f/7H35t69haej oOiJaptV3zeyHOD/bF7lguZ6bj7TnSd7S9d1OgEhhtQh/0zV3gO/6SW8WaMAt92GdTWm SGsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=6BVPR9JKvlyMbzhDj8IrQvXVsYe2G91lSnLKrXCJ6i4=; b=caPC//BGhDmMAdk9GvK5n8kf9xZRkm8Dr8s5NB8HYELIFxz55ttCwrDlZEoflhdVi/ /B5rBP3u1JfsPyGiqVSoK8GlfRbWS2E/qTB6mVQKMdRkGHrLRH7919fu8JLoFdGGos6e 7HTpX1oYfIuFDZaepTmEd02o7jmoDAb+JaxooXgmpQfzNSUeLlH21p8GCzzbzgxVDvDV 4MooX/ngnDublhZ2qWDKr7hVwCeQinfNFuA+MOOr/r1veOCZnr19GGCe+42Ux+UH1t/Z gLHo/d/4SMps/38kMXdKwZbrQVmPPYRSpgmMOoYTIPUjTQ4OQhkO1ihUOax4VNyo1v+f LsOw== X-Gm-Message-State: AOAM531ODLYYpV9xP5vUrUtB6FC/8wBYELW8Y1hFcMlxsmyvJIYZ1ID0 /xLRiT8+6h8Dzhwu16tWZcrlUw== X-Google-Smtp-Source: ABdhPJwqsIVe03aAElbmz180WF8ZpMY8PMdLaWNv/4r0JeKPymxTBYutRWlyM+ri0Nsj1Oq3Ij5KIQ== X-Received: by 2002:adf:f681:: with SMTP id v1mr2111118wrp.150.1614330570688; Fri, 26 Feb 2021 01:09:30 -0800 (PST) Original-Received: from localhost ([2a02:8084:20e2:c380:6d2d:c2fa:f3fa:cabd]) by smtp.gmail.com with ESMTPSA id f16sm11046391wrt.21.2021.02.26.01.09.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Feb 2021 01:09:30 -0800 (PST) In-Reply-To: <83eeh3qn63.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 26 Feb 2021 09:54:28 +0200") Received-SPF: none client-ip=2a00:1450:4864:20::42c; envelope-from=contovob@tcd.ie; helo=mail-wr1-x42c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:265670 Archived-At: Eli Zaretskii writes: >> From: Richard Stallman >> Date: Fri, 26 Feb 2021 01:36:52 -0500 >> Cc: sdl.web@gmail.com, emacs-devel@gnu.org >> >> It's not a good thing for a package to load more other packages >> unnecessarily. If it happens just once, it is not a big deal. >> But if many libraries do it, it could lead to a cascade of bloat. >> >> Does url-parse need json all the time, or only in rare special cases? > > I don't see json loaded by any file in the lisp/url directory, so it > must be some indirect load. The easiest way of finding out who loads > it would be to run Emacs under GDB with a breakpoint on Fload. url-parse.el has only three requires: (require 'url-vars) (require 'auth-source) (eval-when-compile (require 'cl-lib)) auth-source.el has a known JSON backend, and indeed it loads: (require 'json) (require 'password-cache) (require 'cl-lib) (require 'eieio) -- Basil