Bug#808579: Not fixed?

2015-12-27 Thread Eugen Dedu

On 26/12/15 15:14, Niels Thykier wrote:

Eugen Dedu:

Hi,

I have had the same problem since apt 1.1 version.  Now I have 1.1.6,
but this bug is still not fixed: apt-get update takes much time during
rred phase.



Hi,

For reference, the following commit was done today, which might be of
interest:

https://anonscm.debian.org/cgit/apt/apt.git/commit/?id=0b29c72
"""
Use a hardcoded buffer size of 4096 to fix performance

The code uses memmove() to move parts of the buffer to the
front when the buffer is only partially read. By simply
reading one page at a time, the maximum size of bytes that
must be moved has a hard limit, and performance improves:

In one test case, consisting of a 430 MB Contents file,
and a 75K PDiff, applying the PDiff previously took about
48 seconds and now completes in 2 seconds.


Indeed, it is extremely fast now, thank you!


Further speed up can be achieved by buffering writes, they
account for about 60% of the run-time now.
"""

It will probably be a part of the next APT release.


--
Eugen



Bug#808579: Not fixed?

2015-12-26 Thread Niels Thykier
Eugen Dedu:
> Hi,
> 
> I have had the same problem since apt 1.1 version.  Now I have 1.1.6,
> but this bug is still not fixed: apt-get update takes much time during
> rred phase.
> 

Hi,

For reference, the following commit was done today, which might be of
interest:

https://anonscm.debian.org/cgit/apt/apt.git/commit/?id=0b29c72
"""
Use a hardcoded buffer size of 4096 to fix performance

The code uses memmove() to move parts of the buffer to the
front when the buffer is only partially read. By simply
reading one page at a time, the maximum size of bytes that
must be moved has a hard limit, and performance improves:

In one test case, consisting of a 430 MB Contents file,
and a 75K PDiff, applying the PDiff previously took about
48 seconds and now completes in 2 seconds.

Further speed up can be achieved by buffering writes, they
account for about 60% of the run-time now.
"""

It will probably be a part of the next APT release.

Thanks,
~Niels





signature.asc
Description: OpenPGP digital signature


Bug#808579: Not fixed?

2015-12-26 Thread Eugen Dedu

Hi,

I have had the same problem since apt 1.1 version.  Now I have 1.1.6, 
but this bug is still not fixed: apt-get update takes much time during 
rred phase.


--
Eugen