[mod_python] apache.send_file()

Gregory Trubetskoy grisha at modpython.org
Tue Dec 5 11:42:55 EST 2000


Yeah, it will be faster.... (req.write(f.read()) is going to be pretty
damn fast too) I didn't bother implementing that one since I figured 99.9%
of the content will be dynamically generated. I'll see if I can implement
something in the next version.

Grisha

On Mon, 4 Dec 2000, Damjan wrote:

> Is there a point in having something like
> apache.send_file(PyObject * file) or apache.send_file(char * filename)
> 
> Of course I can do this with:
> 	f = open(...
> 	buf = f.read()
> 	req.write(buf)
> but perhaps using apache calls will be faster.
> 
> -- 
> Damjan Georgievski		|           Дамјан Георгиевски
> Skopje, Macedonia		|           Скопје, Македонија
> 
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://www.modpython.org/mailman/listinfo/mod_python
> 




More information about the Mod_python mailing list