Switch to Catalyst

There hasn't been much visible activity here recently. But it doesn't mean nothing is moving: I'm currently trying to switch from ePerl to a Catalyst application.

Using DBIx::Class to handle database queries is very slow in CGI mode, as everything must be reloaded each time a page is displayed (and DBIx::Class is huge at that). Basically, each page require at least 1 second to build, half of it is loading the perl libraries. The server load is very low, so it's not a problem here; but it is one for you who need to wait each time you want to see a page! After considering switching to mod_perl, I decided to prefer FastCGI that will be more memory friendly (there is only 256 MB here, so I'd better not load the application in every apache process serving static content!) I could probably have done it with ePerl, but I already built a Catalyst app in the past, and that was fun and efficient.

The application is nearly ready. I still need to fix a known bug with mod_deflate that keeps Firefox throbbing after the page is loaded (it took me days to figure out what was happening!) The admin part is not done yet, but it can wait a bit. Normally you won't see any difference in the beginning… except that pages will load faster! Stay tuned…

Xavier Robin
Publié le samedi 8 janvier 2011 à 19:30 CET
Lien permanent : /blog/2011/01/08/switch-to-catalyst
Tags : Mon site web
Commentaires : 0

Commentaires

Aucun commentaire

Nouveau commentaire

* L'astérisque dénote un champ obligatoire.

En soumettant votre message, vous acceptez qu' il soit publié sous licence CC BY-SA 3.0.

Quelques balises HTML sont autorisées : a[href, hreflang, title], br, em, i, strong, b, tt, samp, kbd, var, abbr[title], acronym[title], code, q[cite], sub, sup.

Switch to English

Chercher

Tags

Bruit de fond Hobbys Humour Informatique Internet Livres Logiciels Moi Mon site web Mozilla Photo Politique Programmation Scolaire Ubuntu pROC

Billets récents

Calendrier

lun.mar.mer.jeu.ven.sam.dim.
12
3456789
10111213141516
17181920212223
24252627282930
31

Syndication

Recommender