From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: excessively slow image animation Date: Wed, 13 Feb 2019 23:14:59 +0000 Message-ID: <20190213231459.GA26737@breton.holly.idiocy.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="253163"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.11.2 (2019-01-07) Cc: Evgeny Zajcev , emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 14 00:15:15 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gu3kI-0013hR-Ku for ged-emacs-devel@m.gmane.org; Thu, 14 Feb 2019 00:15:14 +0100 Original-Received: from localhost ([127.0.0.1]:36437 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gu3kH-0008NP-En for ged-emacs-devel@m.gmane.org; Wed, 13 Feb 2019 18:15:13 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43666) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gu3k9-0008N3-IQ for emacs-devel@gnu.org; Wed, 13 Feb 2019 18:15:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gu3k8-0005EI-Kg for emacs-devel@gnu.org; Wed, 13 Feb 2019 18:15:05 -0500 Original-Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:39284) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gu3k8-0005DW-B6 for emacs-devel@gnu.org; Wed, 13 Feb 2019 18:15:04 -0500 Original-Received: by mail-wr1-x431.google.com with SMTP id l5so3359948wrw.6 for ; Wed, 13 Feb 2019 15:15:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=tn3ERx3PSiZftU2NPJmBY+KYjfxd2BumF244QwQFGhU=; b=j/iFizB6EP1CuffFMd+NqHP/HzOBCyLitPEdR57lsWYHM9KOx6IjaB3XQOJ/h/iEfQ HLyyiZfVc0/72iQO6B4X1EktGJbzSfokV2JmPovnxR7RDRzMy5RvKkdmNKvnkRTtnfBo Dr0gG9SY0xeqGBWevrFuEYTYSgTqIJnRqOCLlpl7GVRSpg40jXAeR4Lrw2pvtE6sx+OY 554PFlcd4abGCKm0maxZHjz5m+tV4UyJ3MTtlZvStT9deDurxKPlwipwR+trE/5c3y9G x7PF1p9YIk2rn1rlKfcWAjBO6yPSTAJZdDLBnRjFWhSwGWE/0XEmH45K3mjRRVYI7KiK 2BCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=tn3ERx3PSiZftU2NPJmBY+KYjfxd2BumF244QwQFGhU=; b=ZfRVFLcCOIuMtz+Iu+n//zc9lvwWZEc4fkFJldIJiK7u1STXNEsqCkgykHeoi0Ll6U hTDabSFKAF7FeAiHmjqeLxKsB1Wl8HzjUWbEa1hRu/fL5jtt3rEZPpWEksL3nzUBL++9 zMo9/zFoT/v6v2XF8mACr4IT15iOOB1pZZqZeZmRi9uTKH6nyDx5eYMspOWTuVNUoFnV 8ImYyM2wkX6mS2XzlhWxaOOj/ON8OoJ5fiVlPyily16kxcD3wq8q1oLB46EbpqCQyaev uObn1KJW3L42o1OljzB7Fghnyly6c5SIOgVK8eRog5GPgYD0X5/UsEn3+LAHbQp1qTpL AY4g== X-Gm-Message-State: AHQUAubpGtuGhg7/H5Xq2WhdSPRgc9jzMg1uVVmGyUhhfIF0bNyD0Awz Al1VZXYf9BYGL1LesVfRjoM= X-Google-Smtp-Source: AHgI3IZxq62DaXZxW/8DaukPbdM2JSRJShiOCBFsYzH0kxFZ40y6TTuIKgjlAnr1xpbXAGdUZzKiqw== X-Received: by 2002:a5d:458b:: with SMTP id p11mr391242wrq.22.1550099702626; Wed, 13 Feb 2019 15:15:02 -0800 (PST) Original-Received: from breton.holly.idiocy.org (ip6-2001-08b0-03f8-8129-20d9-a18c-de7b-74fe.holly.idiocy.org. [2001:8b0:3f8:8129:20d9:a18c:de7b:74fe]) by smtp.gmail.com with ESMTPSA id d4sm427890wmb.25.2019.02.13.15.15.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Feb 2019 15:15:01 -0800 (PST) Content-Disposition: inline In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::431 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:233296 Archived-At: On Wed, Feb 13, 2019 at 06:03:51PM +0100, Lars Ingebrigtsen wrote: > Evgeny Zajcev writes: > > > I've got multi frame image at http://lgarc.narod.ru/giphy.mp4 > > > > And run next code on it: > > > > (let ((ctime (float-time))) > > (setq img (create-image "~/tmp/giphy.mp4" 'imagemagick nil :scale 1.0)) > > (insert-image img) > > (cl-dotimes (index 65) > > (image-show-frame img index 'nocheck) > > (sit-for 0.0)) > > (- (float-time) ctime)) > > ==> 18.788017988204956 > > > > 18 seconds to show every frame > > Wow, that's slow... As an aside: for some reason if you run this a second time it doesn’t use the already cached images from the first run, so it’s just as slow as that first run. I may be misunderstanding how the cache is supposed to work, but that doesn’t seem right to me. -- Alan Third