Article View: rocksolid.nodes.announce
Article #294Re: rslight-0.6.6
From: Retro Guy
Date: Thu, 24 Sep 2020 07:45
Date: Thu, 24 Sep 2020 07:45
13 lines
2678 bytes
2678 bytes
Finally found a good way to tremendously speed up creating the threads page while displaying last poster for each thread.
I was not happy with how slow it was after adding that feature but now it is, from an end user point of view, just about instantaneous. Previous to this, it was taking one to two seconds for groups with maybe 35,000 posts. That doesn't seem long, but it's a delay noticable by a user, and it was really wasting processing time. Now, it's working very well.
I knew how I wanted to fix it, but it took me a while to get it done. I read the group overview from the end (newest) and go backward to find the article info. This makes sense as most users are looking at newer threads instead of older ones. Since the threads are sorted by date, newest to oldest, I was wasting time starting at the top (bottom) again for each thread. Now I have it working properly to just start where it left off, and never read the same line in the file again for a group.
I still would like to create a php function to read the file line by line from the end, which I can write just haven't yet, but right now I'm still using 'tac' ('tail -r' on freeBSD) and it's working fine.
Retro Guy
--
Posted on: novaBBS
www.novabbs.com
Technical Details
Message-ID:
<1ab08dc6119352329ba5d841e10b7017$1@www.novabbs.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!i2pn2.org!.POSTED!not-for-mailReferences:
<b1deb8da4b6f8413b937ba4300ab840a$1@www.novabbs.com> <afaf98ae07e01c65d1dfb5a182f7c546@def4> <b3a3e8fb4fc40a54d73aab91fadf3d3a$1@www.novabbs.com> <44da0a756b6016bbf4f54753a06ab00f$1@www.novabbs.com> <3171fa327eb6a5e70e0a393900c16b7f$1@www.novabbs.com> <395a19de714f601018c8d2a7c0206f04$1@www.novabbs.com> <FChmQiC2nEjHYFZJGp8fHFMxvnqYwTsBf@blah> <fa10328b63da53ad7d0718510e9a769d$1@news.novabbs.org> <09636e225b8d10a8e535cc056de96743$1@www.novabbs.com> <7fc48825ec3b4fe5b92a61efa0ee7f25$1@news.novabbs.org>Show Full Headers
Complete Article Headers
Message-ID: <1ab08dc6119352329ba5d841e10b7017$1@www.novabbs.com> Subject: Re: rslight-0.6.6 Date: Thu, 24 Sep 2020 07:45:39 +0000 From: retro.guy@rocksolidbbs.com (Retro Guy) References: <b1deb8da4b6f8413b937ba4300ab840a$1@www.novabbs.com> <afaf98ae07e01c65d1dfb5a182f7c546@def4> <b3a3e8fb4fc40a54d73aab91fadf3d3a$1@www.novabbs.com> <44da0a756b6016bbf4f54753a06ab00f$1@www.novabbs.com> <3171fa327eb6a5e70e0a393900c16b7f$1@www.novabbs.com> <395a19de714f601018c8d2a7c0206f04$1@www.novabbs.com> <FChmQiC2nEjHYFZJGp8fHFMxvnqYwTsBf@blah> <fa10328b63da53ad7d0718510e9a769d$1@news.novabbs.org> <09636e225b8d10a8e535cc056de96743$1@www.novabbs.com> <7fc48825ec3b4fe5b92a61efa0ee7f25$1@news.novabbs.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf9.newsdeef.eu!i2pn2.org!.POSTED!not-for-mail Newsgroups: rocksolid.nodes.announce Organization: novaBBS Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: i2pn2.org; posting-account="retrobbs1"; logging-data="17436"; mail-complaints-to="usenet@i2pn2.org" User-Agent: Rocksolid Light (news.novabbs.com/getrslight) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on novabbs X-Rslight-Site: $2y$10$Om/RYGxM/44Of16/I2Nivu8X56g9Soh0FrBcjoxnGFxpTMVWH1EWe