From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id B203C1F46C for ; Sun, 12 Jan 2020 21:17:56 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 00/11] ds: various cleanups and fixes Date: Sun, 12 Jan 2020 21:17:45 +0000 Message-Id: <20200112211756.23100-1-e@yhbt.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Start taking advantage of autovivification to simplify our code and reduce allocations. Also, I believe it's my first time using the return value of "push". Eric Wong (11): ds: new: avoid redundant check, make clobbering fatal ds: add_timer: rename from AddTimer, remove a parameter ds: add an in_loop() function for Inbox.pm use ds: remove Timer->cancel and Timer class+bless ds: PostEventLoop: guard ToClose against DESTROY side-effects ds|http|nntp: simplify {wbuf} population ds: rely on autovivification for nextq ds: rely on autovivication for waitpid bits ds: rely on autovivification for $later_queue ds: flatten $EXPMAP, delete entries on close sigfd: simplify loop and improve documentation lib/PublicInbox/DS.pm | 200 +++++++++++++++++---------------------- lib/PublicInbox/HTTP.pm | 6 +- lib/PublicInbox/Inbox.pm | 2 +- lib/PublicInbox/NNTP.pm | 11 +-- lib/PublicInbox/Sigfd.pm | 13 +-- t/ds-leak.t | 2 +- 6 files changed, 105 insertions(+), 129 deletions(-)