I am using a simple method to create criteria for content delivery api which takes publication id and item type as parameter and return a criteria back. The code is as below
public static Criteria GetCriteriaOnPubIdAndItemType(int publicationId,ItemType itemType )
{
PublicationCriteria pubCriteria = new PublicationCriteria(publicationId);
ItemTypeCriteria itemTypeCriteria = new ItemTypeCriteria((int)itemType);
return CriteriaFactory.And(pubCriteria, itemTypeCriteria);
}
Using ant performance profiler i am getting 3.778 seconds for 2 hits to this method which means its taking around 1.8 seconds to create criteria. Am i doing something wrong or is it okay to have this time duration
Regards, Rajendra