Backout bug 769346 due to causing bug 815012. r=backout agreed by rkent,irving,standard8,a=Standard8 GECKO1701_2013010313_RELBRANCH
authorMark Banner <bugzilla@standard8.plus.com>
Mon, 24 Dec 2012 20:32:47 +0000
branchGECKO1701_2013010313_RELBRANCH
changeset 30921 63e4801b635e30b7430075517f38fadc560c5c13
parent 30920 8205328671ddd67c752a53856591a043786c2886
child 30922 e6808ed36d66a2b753d339b34e47a9e0d23169d2
push id1
push userclokep@gmail.com
push dateMon, 07 May 2018 22:45:56 +0000
treeherdercomm-esr60@57eacde5ef40 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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)
 {