Giter Site home page Giter Site logo

Avoid domain user lookups about apt-cyg HOT 4 CLOSED

kou1okada avatar kou1okada commented on August 25, 2024
Avoid domain user lookups

from apt-cyg.

Comments (4)

kou1okada avatar kou1okada commented on August 25, 2024

Thank you for useful advice for my fork.

I added --numeric-owner option to issue-39 branch.

Can you review performance improvement about 4498eca on issue-39 branch ?

I measured performance by below commands:

# Prepare a package to measure performance
# Currently, cygwin-doc has 12 folders and 956 files.
# If this package is not enough to measure performance,
# please choose another one which is enough to measure performance.
pkg=cygwin-doc

# Cache a $pkg package to cygwin cache folder
apt-cyg remove $pkg 
apt-cyg install $pkg

# Prepare branches
git clone https://github.com/kou1okada/apt-cyg -b master /tmp/apt-cyg-master
git clone https://github.com/kou1okada/apt-cyg -b issue-39 /tmp/apt-cyg-issue-39
# Measure performance without this patch
apt-cyg remove $pkg
time /tmp/apt-cyg-master/apt-cyg -u install $pkg

# Measure performance with this patch
apt-cyg remove $pkg
time /tmp/apt-cyg-issue-39/apt-cyg -u install $pkg

A result on my environment (sorry, I have no environment with Active Directory) was below:

$ time /tmp/apt-cyg-master/apt-cyg -u install $pkg
...
real    0m5.693s
user    0m0.761s
sys     0m1.796s

$ time /tmp/apt-cyg-issue-39/apt-cyg -u install $pkg
...
real    0m5.598s
user    0m0.669s
sys     0m1.408s

Best regard.

from apt-cyg.

ilatypov avatar ilatypov commented on August 25, 2024

The delay in a single tar xvf would measure as noticeable seconds when the tarball has a user ID not present in /etc/passwd and net users /domains shows thousands users. I forgot the exact mechanism Cygwin relies on in resolving user IDs and whether it is configurable.

The --numeric-owner option could apply to all tar xvf invokations such as unpacking the actual packages.

from apt-cyg.

kou1okada avatar kou1okada commented on August 25, 2024

Hmm, thanks.
I want to know the quantitative benefit of the performance.
And I hope there is no side effect.

from apt-cyg.

kou1okada avatar kou1okada commented on August 25, 2024

4498eca was merged to master.

from apt-cyg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.