gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] A question re demographics


From: Karsten Hilbert
Subject: Re: [Gnumed-devel] A question re demographics
Date: Mon, 19 Jul 2004 15:43:02 +0200
User-agent: Mutt/1.3.22.1i

> Only possible solution: have an RPC server on the backend capable of serving 
> large blobs in small chunks on request.
Can be done in the client, too.

> Then the requesting widget would register a procedure in the "on idle" loop 
> to 
As I have said before, OnIdle() isn't supposed to be used as
such and when I did use it like this brought wxWidgets to a
crawl. Do you have code that does what you are talking about ?
I should like to look at it.

> while not finished:
>       blob.add(backend_rpc.get_next_chunk(cookie, size))
> display(blob)
Now, how would one do that, exactly ? How would one signal
completion to the GUI thread ?

> So what I do is hexlify the data and use it without further 
> escaping/conversion as Postgres BYTEA data type directly.
Oh, you are storing the hexlified data in a bytea field ? Now,
that's an idea.

OTOH, 7.4 introduced non-inline value passing, eg. bytea data
can be passed in binary as is. Zero overhead. No escaping.
Beats hexlify() any day.

Karsten
-- 
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346




reply via email to

[Prev in Thread] Current Thread [Next in Thread]