BashBBS 1.11: a whole new machine
I don’t want to brag… BUT THIS IS AMAZING!!1
After some bippity-boop on the computer thingy, BashBBS feels like a WHOLE NEW MACHINE!
It’s FAST! It’s RESPONSIVE! Unbelievably fast! And did I mention RESPONSIVE?!
This, my friends, is nothing short of a MIRACLE!
- Enjoy the internet as it was meant to be.
BashBBS ~
BashBBS 1.11 is out. Most of the work went into speed.
What got faster
BashBBS is written in bash and runs on a Raspberry Pi Zero. Bash is quick enough on its own. Every time it starts another program, though, such as sed, stat, date or a $(...) subshell, the Zero needs about 10 ms. A screen that started 90 programs spent almost a second doing nothing else. So this release counts programs per screen and takes them out, mostly by doing the same work in bash itself.
- Logging in. Counting new posts since your last call used to start a program for every post file. On the Zero that took 3.6 s and now takes 0.35 s.
- Unread marks. The
*marks in the board list come from oneawkthat reads every board at once, not a pipeline and agrepfor each board. One scan of 20 boards with 20 posts each went from 1.9 s to 0.5 s on the Zero. - Menus. The terminal size is read once and kept until the window changes size. Header lines are read in bash, not with
sed. - Lists. Columns are cut to fit, file sizes are formatted and user profiles are read without a new program for each row. Callers turns every timestamp into a date with one
date, and the board list finds the private boards with onestatfor all of them.
Programs started per screen, before and after:
Screen Before After
Main menu 91 58
Board list 89 56
Mail list (20 mails) 85 3
File list (15 files) 51 31
Fame & Glory 32 16
Mail menu 27 15
Read mail 26 13
Long thread (30 replies) 33 20
The mail list shows the effect best. On the development machine it went from 317 ms to 59 ms. On the Zero, at about 10 ms for each of the 82 programs that are gone, the saving is close to a second.
Also new
- Netmail. Send private mail to anyone in fsxNet. Write to
name@zone:net/node, for exampleJane@21:9/999. Replies come back to your normal mail inbox. - M and B on fsxNet posts. M mails the author privately. B saves them in your new address book, under Mail 5).
- Everyone posts in the echoes. All callers can now post in the fsxNet echo areas, up to 10 posts a day. The area shows how many you have left today.
- A) ANSI. In an fsxNet post, A shows the colour original of an ANSI ad, cursor-drawn art included.
Call in and see the difference for yourself.