Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news-out.readnews.com!transit3.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!53ab2750!not-for-mail From: "Joerg Meier" Subject: Re: How can you make idle processors pick up java work? Message-ID: <50181D65.55760.calajapr@time.synchro.net> X-Comment-To: qwertmonkey Newsgroups: comp.lang.java.programmer In-Reply-To: <50181D65.55759.calajapr@time.synchro.net> References: <50181D65.55759.calajapr@time.synchro.net> X-FTN-AREA: COMP.LANG.JAVA.PROGRAMMER X-FTN-MSGID: 1:261/38 150e6e3a X-FTN-REPLY: 1:261/38 5893f981 Content-Type: text/plain; charset=IBM437 Content-Transfer-Encoding: 8bit X-Gateway: time.synchro.net [Synchronet 3.16a-Win32 NewsLink 1.98] Lines: 18 Date: Tue, 31 Jul 2012 18:02:38 GMT NNTP-Posting-Host: 69.21.70.65 X-Complaints-To: news@tds.net X-Trace: newsreading01.news.tds.net 1343757758 69.21.70.65 (Tue, 31 Jul 2012 13:02:38 CDT) NNTP-Posting-Date: Tue, 31 Jul 2012 13:02:38 CDT Organization: tds.net Xref: csiph.com comp.lang.java.programmer:16792 To: qwertmonkey From: Joerg Meier You might have more luck reading the whole file at once and then looping through it once it's read. IO is generally slow, and COULD be your bottle neck. But really, your first step should be using a profiler so you don't have to guess as to what's slow. Liebe Gruesse, Joerg -- Ich lese meine Emails nicht, replies to Email bleiben also leider ungelesen. --- BBBS/Li6 v4.10 Dada-1 * Origin: Prism bbs (1:261/38) --- Synchronet 3.16a-Win32 NewsLink 1.98 Time Warp of the Future BBS - telnet://time.synchro.net:24