Re: glib outstanding stuff
- From: Trog <trog gtk org>
- To: Havoc Pennington <hp redhat com>
- Cc: gtk-devel-list gnome org
- Subject: Re: glib outstanding stuff
- Date: Thu, 05 Oct 2000 17:38:37 +0100 (BST)
On 05-Oct-2000 Havoc Pennington wrote:
>
> Trog <trog gtk org> writes:
>> Whats the justification for having this function?
>>
>
> Every nice language has such a thing. (Python, Perl, etc.) We are
> trying to make C nice.
I don't disagree, but it isn't very efficient, and has limited
usefulness.
>
>> It strikes me as a convenience function for lazy programmers who
>> can't be bothered to do things properly.
>>
>
> It's a perfectly reasonable way to do things in many cases. The
> only
> disadvantage is that if you have a huge file, it would be better to
> stream it in and never have it all in memory; but some files are
> only
> going to be huge if things are broken, so as long as we handle
> out-of-memory with a nice error it should be fine.
>
Wouldn't it be better to generalise it so that we could
efficiently handle large files as well as small ones?
Wouldn't a readline() type interface (in GIOChannel) and an mmap()
based interface cover a much larger set of requirements?
-tony
---
E-Mail: trog gtk org
Children are like cats, they can tell when you don't like them. That's
when they come over and violate your body space.
Go Bezerk! http://www.gtk.org/~trog
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]