Re: metadate.py

Wari Wahab <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.devel
Message-ID <[email protected]>
As highlighted on your plugin itself, you are reading the files  
twice, and as a side effect, the noted probable performance hit. I'm  
not sure if there is a clean way to do what you want, but I do  
suggest that you store your read values somewhere like a pickle file.  
If your files are not modified, just read the values off the pickle  
database. That would really improve processing time IMO.

This is one of the reasons why we just try to get enough metadata by  
reading the filename and the timestamp.

On 26 Dec 2005, at 4:32 AM, Cameron Desautels wrote:

> Hi guys,
>
> I have written a pyblosxom plugin which can override file mtimes
> (entry dates) by a #postdate metadata field in an entry.
>
> The plugin can be found here:
>   http://www.binaryuprising.com/code/pyblosxom/metadate.py
>
> It is a bit of kludge (as described in the metadate.py file), but I
> find it useful and I think others may as well.  I am hoping it could
> be included in the plugin registry.
>
> Complete documentation is provided in the file.  Please let me know if
> you have any comments or suggestions.
>
> Happy holidays.
> -- 
> Cameron Desautels <cam-b/[email protected]>
>
>
> Given infinite time, 100 monkeys could type out the complete works of
> Shakespeare.  Win 98 source code? Eight monkeys, five minutes.
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through  
> log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD  
> SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> Pyblosxom-devel mailing list
> Pyblosxom-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/pyblosxom-devel
>



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.