for anybody that is interested :) We where doing a bit of performance tuning on midgard-lite yesterday. Notebly the attachment/image display code.
The problem was that images from midgard-lite displayed very slowly, after some consideration I concluded that the reason behind this was that the php CGI had to be loaded for every image that was being displayed on the page.- hence big lag time in image loading load CGI(php.binary) execute php load scripts (inc. midgard-lite) to page database calls etc. fopen/or passthru the file. The solution that I came up with for midgard-lite (and may be theoretically possible for midgard), was to modify the mgd_server_attachment() call to create a soft link based on the DOCUMENTROOT & REQUEST_URI to the real blob file. (although this does assume that the file extension is correct for that mime type) - most of the time this is true.... The result was an 'amazing' speed up in file/image serving from midgard-lite.... (not supprising really) anyway the code will go in CVS today I hope... - it should just fail quitly if it cannot create the softlinks.. regards alan --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
