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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,4fbd260da735f6f4 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 28 Apr 2007 12:12:27 -0500 From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Reading and writing a big file in Ada (GNAT) on Windows XP References: <1730404.gacr4ERdag@linux1.krischik.com> X-Newsreader: Tom's custom newsreader Message-ID: Date: Sat, 28 Apr 2007 12:12:28 -0500 NNTP-Posting-Host: 24.6.140.189 X-Trace: sv3-OmePfsD5R7kJeWhvkdh7osLrQGl33HTmYvkgmFqCf/CNY21PsXOIpSmjThlgM5UhIOOw6cOtyJ9/qCP!xjqglso6EX+Vv1HxKzJQOhEIz0R8DM2Ob2vi7WYdRIy7y5jhU4em9l+/QgD9q0JhLwjVTfdHEiOh!Hp+UszCOdCQu4qlxNySpOXaYHqZe X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.34 Xref: g2news1.google.com comp.lang.ada:15383 Date: 2007-04-28T12:12:28-05:00 List-Id: >Now, what I did was to create pipline with three threads - one to read the >line, one to make the change, and one to write the lines. Each step of the If the scanning&modification is taking a lot of CPU time and you have a multicore CPU, it might also be worthwhile to have more than one "make the change" tasks. Experiment shows that helps on a simple word counter.