Backout bug 769346 due to causing bug 815012. r=backout agreed by rkent,irving,standard8,a=Standard8
authorMark Banner <bugzilla@standard8.plus.com>
Mon, 24 Dec 2012 20:32:47 +0000
changeset 13585 fea4edb68f01c52c8c65cb62598d38a8eb24b6af
parent 13584 66343c7d1323f1fb927eb6dbd7255008cd575de9
child 13586 3bea464deb12753c1e1168e31f58f4f3b79a738d
push id17
push userbugzilla@standard8.plus.com
push dateMon, 24 Dec 2012 23:30:18 +0000
reviewersbackout, Standard8
bugs769346, 815012
Backout bug 769346 due to causing bug 815012. r=backout agreed by rkent,irving,standard8,a=Standard8
mailnews/local/src/nsLocalMailFolder.cpp
--- a/mailnews/local/src/nsLocalMailFolder.cpp
+++ b/mailnews/local/src/nsLocalMailFolder.cpp
@@ -1970,34 +1970,27 @@ nsresult nsMsgLocalMailFolder::WriteStar
   }
   else
     mCopyState->m_fromLineSeen = false;
 
   mCopyState->m_curCopyIndex++;
   return NS_OK;
 }
 
-#define EIGHT_K 8192
-
 nsresult nsMsgLocalMailFolder::InitCopyMsgHdrAndFileStream()
 {
   nsCOMPtr<nsIMsgPluggableStore> msgStore;
   nsresult rv = GetMsgStore(getter_AddRefs(mCopyState->m_msgStore));
   NS_ENSURE_SUCCESS(rv, rv);
   bool reusable;
   rv = mCopyState->m_msgStore->
          GetNewMsgOutputStream(this, getter_AddRefs(mCopyState->m_newHdr),
                                &reusable,
                                getter_AddRefs(mCopyState->m_fileStream));
   NS_ENSURE_SUCCESS(rv, rv);
-
-  /* Buffer the output if possible */
-  /* BIG performance improvement on Windows with some network file systems */
-  mCopyState->m_fileStream = NS_BufferOutputStream(mCopyState->m_fileStream, EIGHT_K);
-
   if (mCopyState->m_parseMsgState)
     mCopyState->m_parseMsgState->SetNewMsgHdr(mCopyState->m_newHdr);
   return rv;
 }
 
 //nsICopyMessageListener
 NS_IMETHODIMP nsMsgLocalMailFolder::BeginCopy(nsIMsgDBHdr *message)
 {