The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

Some programming help by eof2005-01-27 05:30:17
  C has commands that... by jdelphiki2005-01-27 05:38:47
    Yes I know but... by eof 2005-01-27 06:53:36

... at least in Java, doing it that way yields awful performance, which is why I'd prefer to use a buffer (read more than one character at a time). I'd like to know what other people have experienced with C--is it similarly inefficient to read one character at a time, and what would be a good buffer size (amount of characters to (try to) read at a time)?

Or will a call to setvbuf (with proper parameters) automatically take care of buffering for me, meaning I get as good performance as can be expected, even when using fgetc?

[ Reply ]

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)