From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#69992: Minor improvement to image map transformation logic Date: Sat, 30 Mar 2024 16:37:15 +0300 Message-ID: <86h6gndeno.fsf@gnu.org> References: <87o7b3m8ee.fsf@ushin.org> <55864577-3819-46e0-857a-cc0d0145bc2f@orange.fr> <86cyrfj0t3.fsf@gnu.org> <87cyrfl265.fsf@breatheoutbreathe.in> <182126ee-57b1-4a86-82c6-ba46e4b676cb@orange.fr> <8634s8dtrp.fsf@gnu.org> <645a1ccd-868b-4e02-bfc3-0ce4ab6b8f38@orange.fr> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32737"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 69992-done@debbugs.gnu.org, joseph@breatheoutbreathe.in To: David Ponce Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 30 14:38:26 2024 Return-path: Envelope-to: geb-bug-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 1rqYuf-0008LD-Lk for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Mar 2024 14:38:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rqYuL-000676-6X; Sat, 30 Mar 2024 09:38:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rqYuJ-00066m-EI for bug-gnu-emacs@gnu.org; Sat, 30 Mar 2024 09:38:03 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rqYuJ-0003Bu-1J for bug-gnu-emacs@gnu.org; Sat, 30 Mar 2024 09:38:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rqYuK-0000N9-QS for bug-gnu-emacs@gnu.org; Sat, 30 Mar 2024 09:38:04 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Mar 2024 13:38:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 69992 X-GNU-PR-Package: emacs Mail-Followup-To: 69992@debbugs.gnu.org, eliz@gnu.org, joseph@ushin.org Original-Received: via spool by 69992-done@debbugs.gnu.org id=D69992.17118058521326 (code D ref 69992); Sat, 30 Mar 2024 13:38:03 +0000 Original-Received: (at 69992-done) by debbugs.gnu.org; 30 Mar 2024 13:37:32 +0000 Original-Received: from localhost ([127.0.0.1]:44225 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rqYto-0000LK-1q for submit@debbugs.gnu.org; Sat, 30 Mar 2024 09:37:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44800) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rqYtk-0000KV-4D for 69992-done@debbugs.gnu.org; Sat, 30 Mar 2024 09:37:29 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rqYtc-00039M-E1; Sat, 30 Mar 2024 09:37:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=zl2mz75+JEU4XPxD/7V7qdSIUqYvcmu42YBOKnH02hc=; b=rn3rkQlbn/if 3G2/b0b9lROR6IyBKtJl7lf0J/DknGDdi8jAVclHrmvnGto4sakAu+nBPZ3zaH4q2bq2pHKNtOGZ7 l4NwBdoX4a/Jo68VGbOywO8KBRSlAXTG1h1AQHlA5+5PxWGbYByezNzT9OgXJGr4yHOvB4ea1G+v7 sD2b0BqjsjkphuoomPcSZ9ZrRUUly8w4c/cEXI+tbBturELnHods+85RfFK0IELgaBRLBKWMM10Eu 2SptZe8OAKjgVAgWnk2uWidAqEa2+HfA4FSeRLgb8noTUDZcBNbaKvrbfl8tmEyLkJ7pJs9sYce7g IJidoKR22T7DTSTeBePl1g==; In-Reply-To: (message from David Ponce on Sat, 30 Mar 2024 13:59:41 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:282366 Archived-At: > Date: Sat, 30 Mar 2024 13:59:41 +0100 > From: David Ponce > Cc: 69992@debbugs.gnu.org, joseph@breatheoutbreathe.in > > Here is my last patch. The only change compared to the previous patch is that > now the scale factor is correctly calculated based on the size of the image and > the displayed size. To minimize the performance impact, I saved a call to > `image-size' by doing the calculation directly in the `image--compute-map' and > `image--compute-original-map' functions. I did some benchmarks and the > difference is not significant. The tests still give the same results :-) > > Here is the new change log: Thanks, installed on master, and closing the bug.