Canvas pages are loading very slow.
gemini - June 16, 2009 - 20:50
| Project: | Drupal for Facebook |
| Version: | 5.x-2.x-dev |
| Component: | Canvas Pages |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
My application's canvas pages are loading very slow, even regular cached content pages taking over 6 seconds to load. Pages that have some processing to do, very often time out. But I noticed, even thought they are timing out, their processes appear to be completed, so nothing simply breaks. I tried other peoples' apps, and very many of them are pretty fast, comparing to mine, so I don't understand why my app is so slow. The same pages on the server are lightning fast - tables and queries are optimized and I even manually cached some fb pages trying to make them faster.
I would appreciate any help with this.

#1
One concern I have about canvas page performance is the fb_canvas_process() function. It uses regular expressions to change URLs on the otherwise completed page. I tried to do without this, but never found a way. There's been talk of adding a "url_alter" ability in D7, which would eliminate the need for this.
However I don't think that accounts for all the slowness you're talking about. Could be some inefficiency that I don't know about. I'm not sure how to track it down, but I'd help to fix it if we can find it.
#2
Thanks for your reply Dave. I tried Firebug and Fidler to do network monitoring and it's the call to the canvas page that is the longest. I wish we could break it down somehow and see where it gets stuck...