GithubHelp home page GithubHelp logo

Comments (3)

Zulko avatar Zulko commented on June 26, 2024

There are several ways to up speed computations, but that depends on your project (do you have a minimal example you could share?).

The verify_constraints method is probably called on every subsequence so it is not surprising for it to be a bottleneck. The surest way to speed up computations is to use the coarse_grain/fine_grain parameters, or the A* parameter (both approaches reduce the number of subsequences evaluated, and correspond to slides 220-250 of this slideshow).

Another optimization consists in using memoize=True in CommercialDnaOffer and DnaAssemblyStation to cache the computations of price (and assembly plans) for subsequences. but that will only speed things up if you are doing multi-level assemblies, or if you are evaluating several sequences (with common subsequences) on a same supply network.

I understand that the documentation is not as good as it could be so don't hesitate if you have more questions.

from dnaweaver.

andrewshvv avatar andrewshvv commented on June 26, 2024

Thank you @Zulko! I will try what you mentioned

from dnaweaver.

andrewshvv avatar andrewshvv commented on June 26, 2024

To be honest, code comments helping a lot, so you are a bit humble on saying that documentation is not sufficient :)

from dnaweaver.

Related Issues (12)

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.