From dev-return-3678-archive-asf-public=cust-asf.ponee.io@royale.apache.org Mon Mar 26 22:28:35 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 5BB07180671 for ; Mon, 26 Mar 2018 22:28:35 +0200 (CEST) Received: (qmail 10297 invoked by uid 500); 26 Mar 2018 20:28:34 -0000 Mailing-List: contact dev-help@royale.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@royale.apache.org Delivered-To: mailing list dev@royale.apache.org Received: (qmail 10269 invoked by uid 99); 26 Mar 2018 20:28:33 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Mar 2018 20:28:33 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 5EC61C1DC5 for ; Mon, 26 Mar 2018 20:28:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.398 X-Spam-Level: *** X-Spam-Status: No, score=3.398 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_SORBS_WEB=1.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id nI27i5a-8uXe for ; Mon, 26 Mar 2018 20:28:32 +0000 (UTC) Received: from mail-wr0-f174.google.com (mail-wr0-f174.google.com [209.85.128.174]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 260935F1A1 for ; Mon, 26 Mar 2018 20:28:32 +0000 (UTC) Received: by mail-wr0-f174.google.com with SMTP id u11so7885105wri.12 for ; Mon, 26 Mar 2018 13:28:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=RC4zKC+H2nQ9OQkWRrzxOoc3ZGfFE2yE/5YwFcw/NS0=; b=FmMVkK1rDCAeWUZvZxE/jbVzLn18vN7rAz4zI/k+lRNqPoRyVN0vuP5kUgoH8hW9Ju wg8NISfFMzcNActTZGDAWV42fKWYkpcwa1uur3HzE4APDbelMFIaEfwv/852i67XNZST yQIlGB2qFNzsEl9xtKqcz6KQ0J3oVRHLz4PEBZQ5iFMTbC7K9oyaiO8U+22Z88tPMxQm R+Qw3dAQwRhmEwWnKs5rKvdoPjVzfATE6YobftSQrKMSROxWKcgt7E60EdBWyS7ZYuuz 8NuLjovApVcXMGNBLUCJ8V93RZxkz0lKGZ9WP5kl7B8ASZQ2Whyi7Kp/ayvvi9k57Jca Pumw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=RC4zKC+H2nQ9OQkWRrzxOoc3ZGfFE2yE/5YwFcw/NS0=; b=TDIsI1H0Skl150tsSexK4zSfQSn/lTejk86JsBhkT8mmat2xjgycvID8PQggTTaaMO 5f9lLTtubYMMA9dY+X4RyVpzTYaseaom9LWoFdhJtD0q/t3wLzppUavmYt0nZeOOS4A5 C6JHQvnpVtLF1+KvZ7JGlwfG3+c059pc4IIwWpcjWRSBz80B4+maTlGP4FmtoIzNXbou HXzySeza8B5v+oJpkhGM616ulgoP+R4EKLzu+usgGb+0lKx9jPwJ2q03jwm6OEBMw5JR gNZ5Rc4zyFTaOw58Yg2SyfKYoHwAjMZtsYqDZ0vs9BfOU20j/za7ifOwcTiLwB+yXzPl mR8A== X-Gm-Message-State: AElRT7EKsNZbMUD/memu6wqETXmBzV9I8rtL/WejouIHmsUNxXq3MbQK TAnhJgNo5+onExvrVhr9/YaqXlgT X-Google-Smtp-Source: AIpwx49mHTPQqfKTqpEsHQxHdRPgMZYzep5LuzHveNs4UnIjQKr51jEbdTN9ljwPntbUab7RkOfy2w== X-Received: by 10.223.225.2 with SMTP id d2mr2267633wri.56.1522096111020; Mon, 26 Mar 2018 13:28:31 -0700 (PDT) Received: from [10.0.0.9] ([195.192.229.29]) by smtp.gmail.com with ESMTPSA id n29sm24612943wmi.32.2018.03.26.13.28.28 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Mar 2018 13:28:29 -0700 (PDT) From: Harbs Content-Type: multipart/alternative; boundary="Apple-Mail=_9503C97B-84C6-4979-BCC1-CD7E38017EA7" Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: Layout optimizations Date: Mon, 26 Mar 2018 23:28:27 +0300 References: <8D1A04FE-14B1-4CB4-96C6-202BB6399859@gmail.com> <3BCC0A6F-CBCC-4A8E-8614-F312AB335535@gmail.com> <3078B73A-1675-48B3-A756-114FC40234A4@gmail.com> <1BF024DE-F1B5-401E-A65D-9FB4E06DA4B4@gmail.com> <8F60304F-D07C-4DBE-8D2C-32076F978F6A@gmail.com> <51608898-1C05-487F-8B34-9104182546BC@gmail.com> To: dev@royale.apache.org In-Reply-To: Message-Id: <416B2490-4C56-4E87-B022-9893F98A8F1E@gmail.com> X-Mailer: Apple Mail (2.3273) --Apple-Mail=_9503C97B-84C6-4979-BCC1-CD7E38017EA7 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Mar 26, 2018, at 8:18 PM, Alex Harui = wrote: >=20 > So given all that, I think the independent issues are: > 1) can we optimize our layouts to use browser layouts more? Possibly, and we should when we can. > 2) can we optimize our layouts to avoid direct interactions with the = dom? Possibly to a certain extent. I do think that we want to offer the best = possible performance if users can set hard values for x, y, width and = height. With hard-coded values DOM interaction could be kept to a = minimum. It would be an interesting experiment to see what would happen = if we *don=E2=80=99t* rely on browser layout and hard code everything. > 3) is there any advantage to deferring layout via = requestanimationframe? Definitely =E2=80=94 at least if there=E2=80=99s a need to read = measurements. Many layouts do need that info at some point. If measuring = is standard, it=E2=80=99s also a good way to make sure all the children = are measured for calculating that before layout. There needs to be a way = of separating reads from writes. Although I now believe that = requestAnimationFrame is not the best way to delay execution. There are = higher resolution ways of running async code. Harbs= --Apple-Mail=_9503C97B-84C6-4979-BCC1-CD7E38017EA7--