By using a small hack to find translations made after the locale module init I found something in the location_views module. On line 9 following t function is called:

define('LOCATION_VIEWS_UNKNOWN', t('unknown'));

This is not done right, and when I removed it, and replaced LOCATION_VIEWS_UNKNOWN with t('unknown') in the file, it had an enormous performace impact on my site. It actually started when I turned on devel module and found a strange cache_set call. It actually tried to cache all the translated strings in location_views module, but this call is now gone.

Comments

mnlund’s picture

Bumping this.

It's not fixed, and the bug is causing lots of extra db calls.

bdragon’s picture

Status: Active » Fixed

Fixed in HEAD, thanks.

(Grr, I need to investigate a better way of doing this.. A placeholder unknown and a theme function, maybe?... Hmm...)

bdragon’s picture

Title: t() in global enviriment not allowed » t() in global scope causing massive slowdown

http://drupal.org/node/154223 marked duplicate.

Updating title.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.