Return-Path: X-Original-To: apmail-chemistry-dev-archive@www.apache.org Delivered-To: apmail-chemistry-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 593F9177AC for ; Fri, 11 Sep 2015 10:15:47 +0000 (UTC) Received: (qmail 20437 invoked by uid 500); 11 Sep 2015 10:15:47 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 20380 invoked by uid 500); 11 Sep 2015 10:15:47 -0000 Mailing-List: contact dev-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list dev@chemistry.apache.org Received: (qmail 20366 invoked by uid 99); 11 Sep 2015 10:15:47 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Sep 2015 10:15:47 +0000 Date: Fri, 11 Sep 2015 10:15:47 +0000 (UTC) From: "Florent Guillaume (JIRA)" To: dev@chemistry.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CMIS-948) WSConverter.convertCalendar is slow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Florent Guillaume created CMIS-948: -------------------------------------- Summary: WSConverter.convertCalendar is slow Key: CMIS-948 URL: https://issues.apache.org/jira/browse/CMIS-948 Project: Chemistry Issue Type: Improvement Components: opencmis-commons Reporter: Florent Guillaume Priority: Minor Fix For: OpenCMIS 0.14.0 {{WSConverter.convertCalendar}} appears heavily in some profiling traces. {{WSConverter.convertCalendar}} uses {{DatatypeFactory.newInstance()}} every time but calling this is known to be quite slow under current JVMs because it does heavy classloading (http://stackoverflow.com/questions/7346508/datatypefactory-usage-in-creating-xmlgregoriancalendar-hits-performance-badly). We should use one of the recommended solutions to avoid this. -- This message was sent by Atlassian JIRA (v6.3.4#6332)