GithubHelp home page GithubHelp logo

Comments (5)

florian-vuillemot avatar florian-vuillemot commented on June 12, 2024

Pipeline manager:

@classmethod
    def _get_all_by_config_id(cls, config_id: str) -> List[Pipeline]:
        return cls._repository._search_by_name(config_id)

fs_base

    def _search_by_name(self, name) -> List[Entity]:
        return [self.__to_entity(f) for f in self._directory.glob(f"*{name}*.json")]

On pipeline, scenario, task and data node => 0.21 to 0.10 for latest insertion after 50.

Better:
return [self.__to_entity(f) for f in self._directory.iterdir() if name in f.name]

from taipy-core.

florian-vuillemot avatar florian-vuillemot commented on June 12, 2024

__get_model_filepath in _fs_base.py

        if raise_if_not_exist and not filepath.exists():
            raise ModelNotFound(str(self._directory), model_id)

and not if not filepath.exists() and raise_if_not_exist:

from taipy-core.

florian-vuillemot avatar florian-vuillemot commented on June 12, 2024

Impact time is on _search_by_name in _fs_base.

from taipy-core.

florian-vuillemot avatar florian-vuillemot commented on June 12, 2024

do not reload config_id, parent_id, etc.

from taipy-core.

FlorianJacta avatar FlorianJacta commented on June 12, 2024

Here is the new performance with these changes. Note that for cycle, I create scenarios with the same cycle/day so at the end, I only have one cycle in my .data.

perf

We can predict the time execution of create_scenario:

Time (no cycle) = 0.06735397nb_scenarios + 0.07187587
Time (cycle) = 0.14598272
nb_scenarios + 0.037

It means that the coefs between no cycle and cycle is multiplied by 2,16739592. The intercept for both times are almost null.

Moreover, the coef of the last version was around 0.28 for no cycle. It means that time execution was divided by 4 for no cycle.
The coef for cycle was around 0.46. So the time was divided by 3.2.

from taipy-core.

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.