Code Monkey home page Code Monkey logo

Comments (2)

jnugh avatar jnugh commented on September 26, 2024 2

I did some testing on API performance myself using xdebug profiler. In our case ~25% of the time was spent in OrmMetadata::getData. TIme probably depends on the complexity of user defined entities. But if I just wrap the call and use the DataManager Cache I see substantial performance improvements.

If the cache is stale / has been cleared most time is spent in Util::toCamelCase (including the preg_replace_callback which in itself is rather expensive). In our case toCamelCase contributes to 44% of the overall calculation time. toCamelCase is beeing called more than 1M times during the first API call without cache. It seems like it is being called on every translation object. So as fas as I can tell the inputs into toCamelCase are mostly repeating. Storing the results in a lookup array would probably make things faster.

from atrocore.

FloK8 avatar FloK8 commented on September 26, 2024 1

I also noticed extremely poor performance since some months e.g. when logging in or using the system for a while. Clearing the cache/using a new browser tab help. @rratsun Do you have any idea on this?

from atrocore.

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.