From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Pittman Newsgroups: gmane.emacs.devel Subject: Re: excessively slow image animation Date: Tue, 26 Feb 2019 16:18:21 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000f52d8f0582d29a42" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="150490"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel To: Evgeny Zajcev Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 26 22:19:42 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 1gyk8b-000d3W-UA for ged-emacs-devel@m.gmane.org; Tue, 26 Feb 2019 22:19:42 +0100 Original-Received: from localhost ([127.0.0.1]:33431 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gyk8a-0000ii-TY for ged-emacs-devel@m.gmane.org; Tue, 26 Feb 2019 16:19:40 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39646) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gyk7z-0000iK-Aa for emacs-devel@gnu.org; Tue, 26 Feb 2019 16:19:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gyk7x-0006UY-Dx for emacs-devel@gnu.org; Tue, 26 Feb 2019 16:19:03 -0500 Original-Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]:46660) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gyk7w-0006TQ-C6 for emacs-devel@gnu.org; Tue, 26 Feb 2019 16:19:01 -0500 Original-Received: by mail-ed1-x52b.google.com with SMTP id f2so12029987edy.13 for ; Tue, 26 Feb 2019 13:18:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=eRcxfgb8QrgI+lRugzw67ZaNbtiyF2HAinWyntRGJaA=; b=TFSSLw7d6r3fkmUjyH29ODkTIKImFIqzg7XNazLxVmaQxKYWT90nk2EssSeJWPHFw9 AePl6h8gL/qDQmYudsmytvTO+VXQm+CGYQaZwQ5d2zzkayGUCxf30jbXz31sYm9I5zyj M+yODXvGKJW277SVfQpI5QMKuvElUd2IWCoY1b+7YevO/onROSIfkQLfJVGYZa6btmpy 10+Hyo4890cbjEk8fk8fzOqUm+OFiu1IO4TG6azCsj89xmUJIDTsQMo8sNLNqogk/4it fkmP/hQJ1ot2k28zIq0q2r1T0+XQaVxz0rELsu5nooBzVhS7udu5pzkPS33SAKLNKidi T5dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=eRcxfgb8QrgI+lRugzw67ZaNbtiyF2HAinWyntRGJaA=; b=TAsLSExRovdsSObB+UfAKFnLtcU1de22FhYx2A3VxvLgwRO2Gu2boj+Ed+hFBo1zR8 jad5WGEDUjlQQ0liWxWiE0Gb7BAty49BHuH2j1clqH7AzsbIjhmzBasOQBbMOai/Qqg/ atutAkhUGJ4KUUtcG+TD3lsoaS27EVzR+0KooBm5N+N1WDwf+9YMO+1yqwPRiSFJtFvx 3V7vDOCTXGmCQlBVsjTFItI4LADezSgG/a/1UQ9r2u+yXkuY2/wYrNDBw+Pa24eJ1T1s 6Zi5h+89r7SauQ0MPNe0LnoZoq1NBeKSr8kUie6jYDiJ1+wVp5KMZvsSaCi+pth+1skb zdIQ== X-Gm-Message-State: AHQUAuYWHg+lTKYzzXz+hyQA6Krc1MiOkX5DXZX6D0CEkQUQOJXk07ac V+SG4enDTTIHTuSI0ljx6qKShTrnQ9VaqVWricsMsg== X-Google-Smtp-Source: AHgI3IZcXZyBVx+inNlBl1LnBbZoANciRDwkDv++nHRyw47QxCm+2AAStQ0UADIfCx0mB0wqTFcpQO4sXRl2AjuFcZg= X-Received: by 2002:a17:906:51cd:: with SMTP id v13mr17791021ejk.71.1551215938021; Tue, 26 Feb 2019 13:18:58 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::52b 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:233640 Archived-At: --000000000000f52d8f0582d29a42 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Feb 13, 2019 at 9:56 AM Evgeny Zajcev wrote: > I've got multi frame image at http://lgarc.narod.ru/giphy.mp4 > 18 seconds to show every frame > Time to fully extract the images from that (cold cache) on my laptop was ~ 30 seconds. It contains one key frame, the very first, and everything else is a P frame, so to decode frame 20 you need to run forward applying 19 frames worth of data from the start. If the components were being cached or generated independently =E2=80=93 hi= ghly likely, I suspect =E2=80=93 then that time-cost would be paid the first tim= e. A grand total of 18 seconds to do that processing doesn't actually sound unreasonable to me, honestly, given that decoding all those frames in individual processes takes ~ 5.35 seconds total on my machine. It wouldn't take much inefficiency on top of that to bring it up to that rate. > --000000000000f52d8f0582d29a42 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Feb 13, 2019 at 9:56 AM Evgeny Za= jcev <lg.zevlg@gmail.com> w= rote:
I've got multi frame image at= =C2=A0http://= lgarc.narod.ru/giphy.mp4
18 seconds to show every frame
=

Time to fully extract the images from that (cold cache) o= n my laptop was ~ 30 seconds.=C2=A0 It contains one key frame, the very fir= st, and everything else is a P frame, so to decode frame 20 you need to run= forward applying 19 frames worth of data from the start.

If the components were being cached or generated independently =E2= =80=93 highly likely, I suspect =E2=80=93 then that time-cost would be paid= the first time.=C2=A0 A grand total of 18 seconds to do that processing do= esn't actually sound unreasonable to me, honestly, given that decoding = all those frames in individual processes takes ~ 5.35 seconds total on my m= achine.=C2=A0 It wouldn't take much inefficiency on top of that to brin= g it up to that rate.