Article View: comp.lang.c++
Article #1147Re: “The end of software secrecy is almost upon
From: Lawrence D’Oliveiro
Date: Fri, 04 Dec 2026 23:46
Date: Fri, 04 Dec 2026 23:46
23 lines
2918 bytes
2918 bytes
On Fri, 4 Dec 2026 15:08:16 -0800, BCFD 36 wrote: > The RF guy (who was brilliant BTW) who wrote the original program > used a bubble sort for his sorting algorithm. ANY SE knows this is a > bad idea. They asked me to make some mods and Oh, BTW, it is really > slow. I made the mod, found said bubble sort, switched in a quick > sort (no libraries available at the time) and improved the run times > by 2 to 3 orders of magnitude depending on how many pulses were > collected. Then I found an algorithm that actually combined the > bubble sort with quick sort and got another 10% improvement. Shellsort would have been something else you could have switched in with very little code -- less than needed for quicksort. Think of it as “bubble sort done right” (yes, really). > Another example had to do with extracting tokens from a datastream. > A different guy, one of our PHDs, had written his own tokenizer and > it was horribly slow. I introduced him to "strtok" and its cousins. > He was quite happy with the speed increase. Everybody knows you hand-code a lexical analyzer as a finite-state machine for maximum speed. `
Technical Details
Message-ID:
<11evjco$267g8$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11amvre$15far$1@dont-email.me> <11b884b$p2o9$1@dont-email.me> <11b8d6i$39gd9$1@dont-email.me> <11b9qna$pqb8$1@dont-email.me> <11bakdb$o7f$1@panix2.panix.com> <11bau11$29ugh$1@dont-email.me> <11bb9sf$ac9u$1@dont-email.me> <11bd7tj$rh4f$1@dont-email.me> <20261022224829.00003145@yahoo.com> <11bf4fp$2esrr$1@dont-email.me> <20261023114238.000042ff@yahoo.com> <11bf8og$2f10p$1@dont-email.me> <11bg3md$1vo80$1@dont-email.me> <11evh50$2568g$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Lawrence D’Oliveiro <ldo@nz.invalid> Newsgroups: comp.lang.fortran,comp.lang.c++,alt.comp.lang.rust,alt.folklore.computers Subject: Re: “The end of software secrecy is almost upon Date: Fri, 4 Dec 2026 23:46:32 -0000 (UTC) Organization: A noiseless patient Spider Lines: 23 Message-ID: <11evjco$267g8$1@dont-email.me> References: <11amvre$15far$1@dont-email.me> <11b884b$p2o9$1@dont-email.me> <11b8d6i$39gd9$1@dont-email.me> <11b9qna$pqb8$1@dont-email.me> <11bakdb$o7f$1@panix2.panix.com> <11bau11$29ugh$1@dont-email.me> <11bb9sf$ac9u$1@dont-email.me> <11bd7tj$rh4f$1@dont-email.me> <20261022224829.00003145@yahoo.com> <11bf4fp$2esrr$1@dont-email.me> <20261023114238.000042ff@yahoo.com> <11bf8og$2f10p$1@dont-email.me> <11bg3md$1vo80$1@dont-email.me> <11evh50$2568g$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 04 Dec 2026 23:46:33 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2301448"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18c7mpXdZdXrE8LPleRfgn8"; posting-host="64be0b6b2cd36d124f2e3a6182c3804b" User-Agent: Pan/0.165 (Kostiantynivka) Cancel-Lock: sha1:vxl/UwlPA41JeUhl/lD8EhIU/ms= sha256:7w8Ll2nhaXK8IPQmdWX2HrBbAw+y3raFi4I6y/Vh7E8= sha1:7tUe8m3x3JYoVVXtiAXIN50Ka/A= sha256:uvjEAe6e4z8u7xaax39FFd8qY7wk+INC3fcBGHmR58U=