Skip Menu |

This queue is for tickets about the Apache-VimColor CPAN distribution.

Report information
The Basics
Id: 11883
Status: resolved
Worked: 3.5 hours (210 min)
Priority: 0/
Queue: Apache-VimColor

People
Owner: octopus [...] nospam.verplant.org
Requestors: pagaltzis [...] gmx.de
Cc: octo [...] verplant.org
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: 2.10



Subject: Implement caching of colourized pages
Text::VimColor is great, but it's also a hefty load to be incurring on each hit to a page. Since the contents involved are mostly static, it would be good if it wouldn't have to be invoked anew every time for the same file.
RT-Send-CC: octo [...] cpan.org
Good point. I did not yet implement a caching feature since I thougt of this module being used rarely to show some code to a mailing list or irc channel or something. However, if this module is being used more often in reality than I though a chaching method is definitely useful. I'll look at it later tonight.. Thanks for your feedback :) -octo
[ARISTOTLE - Tue Mar 15 12:16:52 2005]: Show quoted text
> Text::VimColor is great, but it's also a hefty load to be incurring on > each hit to a page. Since the contents involved are mostly static, > it would be good if it wouldn't have to be invoked anew every time > for the same file.
I've implemented a simple caching algorithm and packed a new release. You can download the new distribution at the following URL, if you want to give it a try. I'll upload it to CPAN tomorrow, unless you find some bugs that need fixing.. http://verplant.org/files/Apache-VimColor-2.00.tar.gz Regards, -octo
From: pagaltzis [...] gmx.de
Show quoted text
> I've implemented a simple caching algorithm and packed a new release. > You can download the new distribution at the following URL, if you want > to give it a try.
The code looks good, but I would suggest you use Cache::Cache instead of rolling your own. That would make it easy for users to specify what kind of cache backend they want (such as they blazing fast Cache::FastMmap), along with extra options to fine-tune it to their situation.
[pagaltzis@gmx.de - Tue Mar 15 15:40:29 2005]: Show quoted text
> The code looks good, but I would suggest you use Cache::Cache > instead of rolling your own. That would make it easy for users to > specify what kind of cache backend they want (such as they > blazing fast Cache::FastMmap), along with extra options to > fine-tune it to their situation.
I've implemented basic support for the default Cache::* Modules, namely Cache::(SizeAware)?((Shared)?Memory|File)Cache. Cache::FastMmap is not (yet) supported, but I wanted to get the original Cache::* modules working before doing fancy new stuff.. Same procedure, I'll wait a bit before uploading to CPAN so you have a chance to catch bugs that hid while I was testing.. http://verplant.org/files/Apache-VimColor-2.10.tar.gz Regards, -octo
From: pagaltzis [...] gmx.de
[OCTO - Wed Mar 16 10:47:59 2005]: Show quoted text
> I've implemented basic support for the default Cache::* Modules, namely > Cache::(SizeAware)?((Shared)?Memory|File)Cache.
Looks fine to me, thanks.