Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-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 613D318B67 for ; Mon, 12 Oct 2015 13:13:05 +0000 (UTC) Received: (qmail 36189 invoked by uid 500); 12 Oct 2015 13:13:05 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 36153 invoked by uid 500); 12 Oct 2015 13:13:05 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 36142 invoked by uid 99); 12 Oct 2015 13:13:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Oct 2015 13:13:05 +0000 Date: Mon, 12 Oct 2015 13:13:05 +0000 (UTC) From: "Oleg Nechiporenko (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (AMBARI-13387) Improve time for transforming data on the graphs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Oleg Nechiporenko created AMBARI-13387: ------------------------------------------ Summary: Improve time for transforming data on the graphs Key: AMBARI-13387 URL: https://issues.apache.org/jira/browse/AMBARI-13387 Project: Ambari Issue Type: Bug Components: ambari-web Affects Versions: 2.1.3 Reporter: Oleg Nechiporenko Assignee: Oleg Nechiporenko Fix For: 2.1.3 {{ambari-web/app/views/common/chart/linear_time.js#transformData}} takes too much time because {{App.dateTimeWithTimeZone}} is executed in the loop. Better way - calculate timeDiff one time and use it: {code} var timeDiff = App.dateTimeWithTimeZone(seriesData[0][1] * 1000) / 1000 - seriesData[0][1]; {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)