sw/source/filter/ascii/parasc.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit e68b6e349c31ac1376e90218013e1e7612f2b522
Author: Michael Meeks <michael.me...@collabora.com>
Date:   Mon Apr 24 14:58:54 2017 +0100

    Optimize plain-text import.
    
    Cost of managing rsids is very significant >50% of import time, new
    Rsids will be generated for changes anyway.
    Also avoid un-necessary splitting of paragraphs on new-line.
    
    Change-Id: Ib959306f187f93bd3a85ead11fd2342b99d4ece3
    Reviewed-on: https://gerrit.libreoffice.org/36938
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Michael Meeks <michael.me...@collabora.com>

diff --git a/sw/source/filter/ascii/parasc.cxx 
b/sw/source/filter/ascii/parasc.cxx
index 0256f782fc30..e3045b0edee8 100644
--- a/sw/source/filter/ascii/parasc.cxx
+++ b/sw/source/filter/ascii/parasc.cxx
@@ -481,7 +481,7 @@ sal_uLong SwASCIIParser::ReadChars()
         {
             // We found a CR/LF, thus save the text
             InsertText( OUString( pLastStt ));
-            pDoc->getIDocumentContentOperations().SplitNode( 
*pPam->GetPoint(), false );
+            pDoc->getIDocumentContentOperations().AppendTextNode( 
*pPam->GetPoint() );
             pLastStt = pStt;
             nLineLen = 0;
         }
@@ -498,8 +498,6 @@ sal_uLong SwASCIIParser::ReadChars()
 void SwASCIIParser::InsertText( const OUString& rStr )
 {
     pDoc->getIDocumentContentOperations().InsertString( *pPam, rStr );
-    pDoc->UpdateRsid( *pPam, rStr.getLength() );
-    pDoc->UpdateParRsid( pPam->GetPoint()->nNode.GetNode().GetTextNode() );
 
     if( pItemSet && g_pBreakIt && nScript != ( SvtScriptType::LATIN |
                                              SvtScriptType::ASIAN |
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to