this may make some of you cringe, so i apologize

i've moved over a bunch of image processing and file uploading from a mod_perl project to the turbogears python framework - i seriously hate the speed and quality of GD / ImageMagick, and python's imaging library was better suited to my needs. keeping the imaging and document handling off of modperl conserved a ton of memory and resources too, so i'm happy.

the issue came though - how do i transparently handle the switchover for the users?

the answer:
  a- url dispatch proxies the relative urls to python
b- use a cross-language data store for sessions -- which ended up being yaml.

there already is an apache session flex module for yaml, but it handles everything via the pure-perl yaml implementation

i patched it to use the syck library if available:

http://dev.2xlp.com/svn/mod_perl/cpan_patches/ Apache::Session::Serialize::YAML/trunk/YAML.pm

the idea was from the JSON::Syck implementation - written by the same person who wrote yaml, but he's yet to update the official flex::yaml binding (he was working on a real release last month )

i desperately needed the speed bump ( 30-100x faster than the pure perl, though still 25-50% the speed of Storable ) - so in case anyone else in in a similar spot, you can try using the file above.

Reply via email to