Giter Site home page Giter Site logo

Comments (3)

TaiSakuma avatar TaiSakuma commented on May 24, 2024

should measure what is actually slow. it might not be collecting results. it might be loading pickle files that is slow

result = pickle.load(f)

from alphatwirl.

TaiSakuma avatar TaiSakuma commented on May 24, 2024

it is gzip (unzip) that is slow rather than loading pickle files itself

   ncalls  tottime  percall  cumtime  percall filename:lineno(function)
        1   10.684   10.684 8287.002 8287.002 framework_delphes.py:89(__call__)
        1    0.000    0.000 8213.789 8213.789 EventsInDatasetReader.py:57(end)
        1    0.000    0.000 7779.011 7779.011 MPEventLoopRunner.py:84(end)
        1    0.000    0.000 7779.011 7779.011 CommunicationChannel.py:120(receive)
        1    0.079    0.079 7779.011 7779.011 TaskPackageDropbox.py:38(receive)
     1042 5225.470    5.015 5225.470    5.015 {time.sleep}
      271    0.005    0.000 2211.092    8.159 WorkingArea.py:61(collect_result)
      271  426.554    1.574 2211.065    8.159 {cPickle.load}
533073087 1349.945    0.000 1784.455    0.000 gzip.py:248(read)
        1    0.004    0.004  434.778  434.778 CollectorComposite.py:40(collect)
       11    0.217    0.020  434.765   39.524 Collector.py:35(collect)

from alphatwirl.

TaiSakuma avatar TaiSakuma commented on May 24, 2024

This is implemented bb0c612.

big performance improvement!

results of the event loops are merged as they finish. in merging, the orders of results are preserved.

from alphatwirl.

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.