1
0
Fork 0
forked from OpenNeo/impress
impress/app/controllers
Matchu 9e3cac82ec use proxies for item html, too
Some lame benchmarking on my box, dev, cache classes, many items:

No proxies:
    Fresh JSON:  175,  90,  90,  93,  82, 88, 158, 150, 85, 167 = 117.8
    Cached JSON: (none)
    Fresh HTML:  371, 327, 355, 328, 322, 346 = 341.5
    Cached HTML: 173, 123, 175, 187, 171, 179 = 168

Proxies:
    Fresh JSON:  175, 183, 269, 219, 195, 178 = 203.17
    Cached JSON:  88,  70,  89, 162,  80,  77 = 94.3
    Fresh HTML:  494, 381, 350, 334, 451, 372 = 397
    Cached HTML: 176, 170, 104, 101, 111, 116 = 129.7

So, overhead is significant, but the gains when cached (and that should be
all the time, since we currently have 0 evictions) are definitely worth
it. Worth pushing, and probably putting some future effort into reducing
overhead.

On production (again, lame), items#index was consistently averaging
73-74ms when super healthy, and 82ms when pets#index was being louder
than usual. For reference is all. This will probably perform
significantly worse at first (in JSON, anyway, since HTML is already
mostly cached), so it might be worth briefly warming the cache after
pushing.
2013-06-26 23:50:19 -07:00
..
application_controller.rb oops: only infer public locales from language header 2013-01-27 00:35:22 -06:00
broken_image_reports_controller.rb i18n for broken_image_reports#create flashes 2013-01-24 18:23:19 -06:00
closet_hangers_controller.rb basic translation infrastructure for items - search is still english-only, and probably will have to be replaced with a legit search engine 2013-01-24 18:24:34 -06:00
closet_lists_controller.rb closet lists, round one 2011-07-29 10:52:04 -04:00
contributions_controller.rb remove N+1 queries in contributions#index 2013-01-25 15:23:48 -06:00
item_zone_sets_controller.rb only show item zones on outfits#edit occupies filter helper 2013-02-05 11:52:52 -06:00
items_controller.rb use proxies for item html, too 2013-06-26 23:50:19 -07:00
locales_controller.rb locale cookie should be long-term, not a session cookie 2013-01-24 18:24:33 -06:00
neopets_pages_controller.rb Don't add duplicate hangers now that closet import can specify a list 2013-06-25 23:40:02 -07:00
neopets_users_controller.rb i18n for neopets_users#create flashes 2013-01-24 18:23:19 -06:00
outfits_controller.rb oops, deal with missing item fields better 2013-01-28 03:01:25 -06:00
pet_attributes_controller.rb move species to database 2013-01-24 18:25:59 -06:00
pet_types_controller.rb a functioning wardrobe 2010-10-10 22:18:42 -04:00
pets_controller.rb ruby 2.0.0 compatibility... hopefully. 2013-02-25 01:14:45 -05:00
roulettes_controller.rb roulette system :) 2011-01-27 16:35:46 -05:00
sessions_controller.rb devise implemented, but not remembering 2011-01-26 13:40:15 -05:00
sitemap_controller.rb move from with_translations to includes(:translations), since we dont usually care about requiring 2013-01-24 18:26:00 -06:00
static_controller.rb terms 2010-11-05 18:55:27 -04:00
sweeper_controller.rb cache item show pages as a first try :) 2010-12-08 20:15:46 -05:00
swf_assets_controller.rb move zones to database 2013-01-24 18:26:00 -06:00
users_controller.rb i18n for users#index, users#update flashes 2013-01-24 18:23:19 -06:00