On 29 June 2014 08:38, Ralf Eggert <[email protected]> wrote: > Hi, > > I have an application that returns only JSON data (not built on > Apigility). A normal request has a basic request time of about 25ms. > Config cache is already turned on. I know that it is not much. But still > I wonder if I can reduce this even more. Speed is a major requirement. >
Did you consider caching at HTTP level first? > For example I think that I don't need some of the view listeners or the > layout template and stuff like that. > The view manager can probably completely be replaced with a small listener that converts `JsonModel` instances into a json http response directly. Routing can also be simplified if you can collapse multiple routes into smarter, custom ones. > > - Has anyone tried to turn off some of the basic MVC features? > ZeffMu plays quite aggressively with that: https://github.com/BinaryKitten/ZeffMu > - If yes, how were you able to reduce the request time? > I never really bothered going lower than that. Caching is the way if it's just simple responses without no interference (Remember to set up cache purging correctly) - If yes, which features did you turn off and how? > The view layer takes a LOT of time to run. It depends on the app, but you should really profile it first. Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/
