* Reading data from a file
@ 2002-12-27 15:34 David Anderson
2002-12-31 22:43 ` Bryan Henderson
0 siblings, 1 reply; 2+ messages in thread
From: David Anderson @ 2002-12-27 15:34 UTC (permalink / raw)
To: linux-scsi
Hi,
I am reading some data from a file byte by byte in my driver. Although it's not a good thing to read a file in the driver I have to do it. My file is quite big can contain about 1000 lines each line containing anywhere from 0 to 500 characters. I believe carry out 500000 reads is not a good thing.
Any suggestions on how I can improve ??
Thanks and Regards,
David
--
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup
Meet Singles
http://corp.mail.com/lavalife
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Reading data from a file
2002-12-27 15:34 Reading data from a file David Anderson
@ 2002-12-31 22:43 ` Bryan Henderson
0 siblings, 0 replies; 2+ messages in thread
From: Bryan Henderson @ 2002-12-31 22:43 UTC (permalink / raw)
To: David Anderson; +Cc: linux-scsi
>I am reading some data from a file byte by byte in my driver.
In what way is is byte by byte? You're calling some subroutine once for
each byte?
The most obvious way to read a file is not in any way byte by byte, so I
don't understand the problem.
>Any suggestions on how I can improve ??
Can you be more specific on the improvement you're looking for?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-12-31 22:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-27 15:34 Reading data from a file David Anderson
2002-12-31 22:43 ` Bryan Henderson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.