From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Paul Rubin Newsgroups: comp.lang.ada Subject: Re: Introductory Presentations, especially aimed at C++ programmers! Date: Thu, 15 Dec 2016 23:37:04 -0800 Organization: A noiseless patient Spider Message-ID: <87eg181g0v.fsf@nightsong.com> References: <1905815374.502825168.454102.laguest-archeia.com@nntp.aioe.org> <877f7b5llo.fsf@nightsong.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="c360af2cd136c2ab828e1e0cb01830df"; logging-data="417"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18tRF2Jt5Vei0XkRs9j/aN1" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:aCAyO+BdiwTBANAinX830bBLmHo= sha1:GSaGadvENcBHEgbK0lKs+vJStu0= Xref: news.eternal-september.org comp.lang.ada:32863 Date: 2016-12-15T23:37:04-08:00 List-Id: Maciej Sobczak writes: > Being slower than equivalent C (or C++, where you will find the > std::getline function) is not the right way to compete. std::getline is actually pathetically slow for some reason. I replaced it with the C library fgets in a program that did a lot of line input, and it sped up the whole program by several times.