From 4c7a1abd391b64a70791bddd9ae43a291f10d924 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Sat, 20 Sep 2014 01:14:01 +0100 Subject: [PATCH] remove insanely busy logging which is killing CPU --- webclient/components/matrix/matrix-filter.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/webclient/components/matrix/matrix-filter.js b/webclient/components/matrix/matrix-filter.js index c99c435b92..328e3a7086 100644 --- a/webclient/components/matrix/matrix-filter.js +++ b/webclient/components/matrix/matrix-filter.js @@ -114,9 +114,13 @@ angular.module('matrixFilter', []) // By default, use the room ID roomName = room_id; + // XXX: this is *INCREDIBLY* heavy logging for a function that calls every single + // time any kind of digest runs which refreshes a room name... + // commenting it out for now. + // Log some information that lead to this leak - console.log("Room ID leak for " + room_id); - console.log("room object: " + JSON.stringify(room, undefined, 4)); + // console.log("Room ID leak for " + room_id); + // console.log("room object: " + JSON.stringify(room, undefined, 4)); } return roomName;