From 5a569bea45b309cd8996bc244587af787c91ed0e Mon Sep 17 00:00:00 2001 From: Edward Lee Date: Wed, 6 Jan 2010 09:57:05 -0800 Subject: [PATCH] Bug 536596 - Don't force garbage collections on every record processed Remove the forceGC at the end of each onProgress from Collections and let normal actions trigger GC. --- services/sync/modules/base_records/collection.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/services/sync/modules/base_records/collection.js b/services/sync/modules/base_records/collection.js index 793052fff5d4..9d2b47dc7df5 100644 --- a/services/sync/modules/base_records/collection.js +++ b/services/sync/modules/base_records/collection.js @@ -158,10 +158,6 @@ Collection.prototype = { record.id = record.data.id; onRecord(record); } - - // Aggressively clean up the objects we created above so that the next set - // of records have enough memory to decrypt, reconcile, apply, etc. - Cu.forceGC(); }; } };