From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.help Subject: Re: make a drawing with Emacs Date: Thu, 03 Sep 2020 19:45:40 +0200 Message-ID: <874koeu52z.fsf@gnus.org> References: <20200901145854.GF15433@tuxteam.de> <87sgbzsx4q.fsf@logand.com> <87ft7zs48u.fsf@logand.com> <87d032u637.fsf@gnus.org> <878sdqu5v6.fsf@gnus.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="3965"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 03 19:46:29 2020 Return-path: Envelope-to: geh-help-gnu-emacs@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 1kDtJd-0000tV-45 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 03 Sep 2020 19:46:29 +0200 Original-Received: from localhost ([::1]:54296 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kDtJc-0005pS-5F for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 03 Sep 2020 13:46:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60692) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kDtJ7-0005p4-3u for help-gnu-emacs@gnu.org; Thu, 03 Sep 2020 13:45:57 -0400 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:55782) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kDtJ5-0005Xy-Is for help-gnu-emacs@gnu.org; Thu, 03 Sep 2020 13:45:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=HSODxS2vxrK23kqfAyt+TroyzkB0MykCDYavYbYmVww=; b=nort3LH9g0JF/BM29KGaxlLJn4 VeC/343jhYRdO24efZU7H9tD5zehS5C+JxS5pQ1QuT1TxruXPc9ucyvgkiH807hjkjZuNFk+nt9bn soHCaUx9wi0UVXWuKv3uz+2Cm9GDQC2VZt2/vldY2Kv6dhsDVHdkbFKNR1nOJdgGrazc=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kDtIs-0004TK-99; Thu, 03 Sep 2020 19:45:52 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAIVBMVEUEAwQrHyVeVlqg np7b0dWmcYhdBiujCUvdCGKJJFD///8kvjReAAAAAWJLR0QKaND0VgAAAAd0SU1FB+QJAxErG79V w2kAAAGVSURBVDjL5dPNTsJAEADg2V0p9bbbAvFYuj5Af16g1IbEG0b0vBUseKuJEY4kRqI3Eg3P 6yzYP9KjNyeQlP0ys1MyA0AIAOH6KwQILvDxGFYAwCRE8k5KEsqgBPAQbBq4LmMkln55TvwhZzGT 0rEZufKDGtxOmC3tGGzmYkZVCu+jxIEhtuEK6lZQBYJoOwcautKB9iD1HwuVGfgxlFo8d/kqU0W5 db428lXXUJvl9kJ9LDZpCasj5Mut+c+g+Eu+j5A1wRK7eSvg8LQDt/isFUjifWnI8qzZFT3CJ4cK yCEj3PURXqIK1AHo5YQivAVeBRaC0Uk8oiGpINegp2qA8J5EBWQp1wBEgO5qOioAWEjUHidUwN5U W4uLAs4SBzRwhHRXm7jelQNPHKeQjs1U1cDGjEfcH+hcm+UYHjISD2YO1qKxWU8Aloxg7mFXHYRd o1QMswiEYGNT4R6Ue9gLb6AfYUbv3kzxrrhcCrzwfAQgpvsm6Bj4uuSr+eCcAODrUsH1W5KiYyJw J0UtTvfv95jDH8cPXFimjoIv+yIAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjAtMDktMDNUMTc6NDM6 MjcrMDA6MDDHB1mBAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIwLTA5LTAzVDE3OjQzOjI3KzAwOjAw tlrhPQAAAABJRU5ErkJggg== X-Now-Playing: The Rapture's _Mirror_: "Olio" In-Reply-To: (Stefan Monnier's message of "Thu, 03 Sep 2020 13:41:57 -0400") Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:123934 Archived-At: Stefan Monnier writes: > IIRC it would make the code slower, tho. It adds code like > > (let ((stroke-color (cadr (plist-member args :stroke-color)))) > > which the compiler fails to optimize away when `stroke-color` is not used. I didn't know that... but on the other hand, all these functions end up calling this internal function: (defun svg--arguments (svg args) (let ((stroke-width (or (plist-get args :stroke-width) (dom-attr svg 'stroke-width))) (stroke-color (or (plist-get args :stroke-color) (dom-attr svg 'stroke-color))) (fill-color (plist-get args :fill-color)) attr) Which could then lose these plist-gets, so we'd end up with approximately the same slowness, I think. :-) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no