Why custom services perform better than services module

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by aparna.kondala on March 14, 2014 at 2:09pm

I have created custom services module which gives json output and I created a resource using services hook_services_resources().

The custom ones gives response in 200ms where as services module gives in 4sec.

What is the reason? Does it take lot of time for formatting?authentication?access checks?

Steps to reproduce-
Custom way--
1)Install drupal
2)Create a content-type of complicated nested field collections
3)create a menu in custom module
4)output of that menu is drupal_json_output of the node data.

Services way---


1)Install drupal
2)Create a content-type of complicated nested field collections

3)install services module and create own module for services which will retrieve that node(along with field collection data) using hook_services_resources

Categories:

Services

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /