Branch: refs/heads/master Home: https://github.com/openSUSE/open-build-service Commit: 148b7a98eba7e0ed45992f7649d6e23aefa774ea https://github.com/openSUSE/open-build-service/commit/148b7a98eba7e0ed45992f... Author: Stephan Kulow <coolo@suse.de> Date: 2013-07-28 (Sun, 28 Jul 2013) Changed paths: M src/api/Gemfile M src/api/Gemfile.lock M src/api/app/controllers/webui_controller.rb A src/api/config/initializers/fast_json.rb M src/api/config/initializers/logging.rb M src/api/test/functional/configurations_controller_test.rb Log Message: ----------- [api] fix performance problem when rendering json as it turned out rails is forcing a specific (slow) json render, so it doesn't matter how fast the json gem is if it's not used. So overwriting the render used for render: json to generate json directly instead of recursive to_json Before project_infos/openSUSE:Factory: 1115ms - after 765ms, so it saves on that project (with quite some packages) 350ms, which is not bad for 3 lines Unfortunately JSON.generate can't be used within rails app due to https://github.com/intridea/multi_json/issues/86 nonsense, so switch back to yajl