Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 75595 Details for
Bug 116870
korn / kio_mbox inefficiency when handling big mboxes
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to improve the performance
kdepim-kioslaves-3.5.0-118926.patch (text/plain), 1.76 KB, created by
Thomas
on 2005-12-27 05:53:46 UTC
(
hide
)
Description:
patch to improve the performance
Filename:
MIME Type:
Creator:
Thomas
Created:
2005-12-27 05:53:46 UTC
Size:
1.76 KB
patch
obsolete
>--- kdepim-kioslaves-3.5.0/kioslaves/mbox/readmbox.cc.orig 2005-12-27 14:07:02.000000000 +0100 >+++ kdepim-kioslaves-3.5.0/kioslaves/mbox/readmbox.cc 2005-12-27 14:07:07.000000000 +0100 >@@ -37,6 +37,7 @@ > m_stream( 0 ), > m_current_line( new QString( QString::null ) ), > m_current_id( new QString( QString::null ) ), >+ m_atend( true ), > m_prev_time( 0 ), > m_only_new( onlynew ), > m_savetime( savetime ), >@@ -77,16 +78,15 @@ > if( !m_stream ) > return true; > >- if( m_stream->atEnd() ) >+ *m_current_line = m_stream->readLine(); >+ m_atend = m_current_line->isNull(); >+ if( m_atend ) // Cursor was at EOF > { >- *m_current_line = QString::null; > *m_current_id = QString::null; > m_prev_status = m_status; > return true; > } > >- *m_current_line = m_stream->readLine(); >- > //New message > if( m_current_line->left( 5 ) == "From " ) > { >@@ -115,7 +115,7 @@ > if( !m_stream ) > return false; > >- while( !m_stream->atEnd() && *m_current_id != id ) >+ while( !m_atend && *m_current_id != id ) > nextLine(); > > return *m_current_id == id; >@@ -138,6 +138,7 @@ > { > if( m_stream ) > m_stream->device()->reset(); >+ m_atend = m_stream->atEnd(); > } > > bool ReadMBox::atEnd() const >@@ -145,7 +146,7 @@ > if( !m_stream ) > return true; > >- return m_stream->atEnd() || ( m_info->type() == UrlInfo::message && *m_current_id != m_info->id() ); >+ return m_atend || ( m_info->type() == UrlInfo::message && *m_current_id != m_info->id() ); > } > > bool ReadMBox::inListing() const >--- kdepim-kioslaves-3.5.0/kioslaves/mbox/readmbox.h.orig 2005-12-27 14:06:28.000000000 +0100 >+++ kdepim-kioslaves-3.5.0/kioslaves/mbox/readmbox.h 2005-12-27 14:06:46.000000000 +0100 >@@ -121,6 +121,7 @@ > QTextStream* m_stream; > QString* m_current_line; > QString* m_current_id; >+ bool m_atend; > > struct utimbuf* m_prev_time; >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 116870
: 75595 |
75596