From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-3.7 required=3.0 tests=AWL,BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from mail-qv1-xf36.google.com (mail-qv1-xf36.google.com [IPv6:2607:f8b0:4864:20::f36]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 2D2AF1F452 for ; Tue, 28 Mar 2023 14:04:43 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=google header.b=CPWD5cHb; dkim-atps=neutral Received: by mail-qv1-xf36.google.com with SMTP id o44so9215087qvo.4 for ; Tue, 28 Mar 2023 07:04:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1680012282; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=8ay2Vf9ZKDDYzv8SJY2i9z579KR2bzmabV6YdU+39yA=; b=CPWD5cHbjTRr55S5ybko2f8jRiJLaui5QMHcf75HnaC/hyZCFUNni7jn1L2f6YtBWJ pVmuUdHZ97dCluy6KluiwLBIQ6uhNoW6TGe0UScbaxqkcOWDkp+klkufAZHZipz9P3ey xrgPd6J7AezBeOxFNMgC9B+7iSyYKGYl5kZmY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680012282; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=8ay2Vf9ZKDDYzv8SJY2i9z579KR2bzmabV6YdU+39yA=; b=Rs5QqUqyLr5ysVB5qDTPCplYcvcV/x5HbirlmO0O2WVPwvsZ2CpnGPziXt/SH0riOG xvb37rQIXsH6Ta/3KV6Fw7iY/4dN3EzPR/eoHOoQ+q8jgHK4PGG5dfKAl3HJWbsyhRK+ tAEBlFb3WBRgeMmUhcf7Z4m0C3EBdWRFc96p0XU5LTwkHxk1GF+7/AvOpDWcbv5ivX+z 9HtKIhfvEcp9kdrs0R2tgXKEcqq/cX7hms0HvLRP2rhU3S6Obujcs30yuRNQOyFz1b5h h8+2I3516MLXDkPGcSsTqsITYZ2KvjATRJL83gkJYibIcAFXUAP4B3soTIFsB3BAiMqs Mteg== X-Gm-Message-State: AAQBX9c+Vv9DUDOJQwkcINUM2/IVjA8EnjoJ9OxWqvKOHYDwksz6WJLH Y8wqZ9NGMwGl0cw9lwt1iDXfSPXwXHUngzPc8T0= X-Google-Smtp-Source: AKy350Zml68qi+66B39oCeyzVS84geDsU1wX40PlU5Q0IaQz0O/0BMVILrjT7I/LVX+TjCHx7nMNVw== X-Received: by 2002:a05:6214:300a:b0:5de:818:1909 with SMTP id ke10-20020a056214300a00b005de08181909mr12357773qvb.40.1680012281701; Tue, 28 Mar 2023 07:04:41 -0700 (PDT) Received: from meerkat.local (bras-base-mtrlpq5031w-grc-30-209-226-106-7.dsl.bell.ca. [209.226.106.7]) by smtp.gmail.com with ESMTPSA id r9-20020a37a809000000b007463509f94asm13802469qke.55.2023.03.28.07.04.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Mar 2023 07:04:41 -0700 (PDT) Date: Tue, 28 Mar 2023 10:04:39 -0400 From: Konstantin Ryabitsev To: Eric Wong Cc: meta@public-inbox.org Subject: Re: Cheap way to check for new messages in a thread Message-ID: References: <20230327191049.M277377@dcvr> <20230327213849.M743623@dcvr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230327213849.M743623@dcvr> List-Id: On Mon, Mar 27, 2023 at 09:38:49PM +0000, Eric Wong wrote: > I thought about that, too; but I'm worried about having one-off > stuff that ends up needing to be supported indefinitely. > > JMAP for this would take more time, but I'd be more comfortable > carrying it long-term. > > I don't expect trimming after the first paragraph to be a huge > improvement. Retrieving any part of the message from git and > dealing with MIME is expensive, anyways. I wouldn't expect it > to be a big (if any) improvement compared to POST-ing for the > mbox.gz (&x=m&t=1) endpoint with rt:$SINCE.. Hmm... This didn't seem to do the right thing for me. For example, this thread: https://lore.kernel.org/lkml/20230327080502.GA570847@ziqianlu-desk2 If I ask for any new messages in that thread since 20230327120000, I get nothing: curl -Sf -d '' 'https://lore.kernel.org/all/?x=m&t=1&q=mid%3A20230327080502.GA570847@ziqianlu-desk2+AND+dt%3A20230328120000..' > The mbox.gz endpoints should be a bit more efficient for the > server than Atom feeds; decoding MIME and HTML escaping takes up > considerable CPU time. Good to know. I'm really looking for a way to ask the remote system "hey, is there anything new in this thread?" so that I can quickly ignore threads without any updates. -K