Giter Club home page Giter Club logo

Comments (2)

AlexanderHott avatar AlexanderHott commented on September 17, 2024

Just as another test, I took the obvious performance improvement and ran all the functions in parallel with Promise.allSettled and they still have an increasing time.

Code is available in the same reproduction https://github.com/AlexanderHott/slow-expo-file-system

 LOG  data [36.656453013420105, 37.94299300014973, 39.215048000216484, 40.38867200911045, 41.60709600150585, 42.62133799493313, 43.65311600267887, 45.618001997470856, 47.21626798808575, 48.447062000632286, 53.82718899846077, 54.94844500720501, 56.557698011398315]

from expo.

AlexanderHott avatar AlexanderHott commented on September 17, 2024

I overlooked a small detail on my end. The call to const start = performance.now() is run immediately, while the await directly after it may not start executing it immediately, essentially making it cumulative.

However, when debugging this issue, I found that readAsStringAsync spends almost half it's executing time serializing the bytes as base64, and I spend a greater amount of time decoding it on the javascript side. Would there be a way to avoid this overhead?

from expo.

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.