Giter Club home page Giter Club logo

Comments (6)

scottyab avatar scottyab commented on May 30, 2024

hmm, I'm assuming you talking specifically get/put secure prefs? as the init slowness is covered in another issue #18 . Do you have any tests or sample code we could review and specific timings? a library like Hugo might help? also do you mean 0.1.0 not 0.0.1

from secure-preferences.

IgorGanapolsky avatar IgorGanapolsky commented on May 30, 2024

I mean 0.1.1. I don't know how to create tests for this yet, I'll look into Hugo. But I can tell you unequivocally that downgrading back to 0.0.4 made my app faster again.

from secure-preferences.

scottyab avatar scottyab commented on May 30, 2024

That figures as the 0.1.x change was pretty big and replaced the core crypto used by Secure Prefs making it stronger. If you see issue #18 we are looking to add a way of providing your own key which you can generate quicker if you're wanting performance over security. The default is higher security. When I get chance I'll add an async way of initialising Secure Prefs.

  • Are you seeing the slowness when you init or put/get?
  • What size of strings are you storing? I was just thinking if they were large that could be why you're seeing slowness

from secure-preferences.

IgorGanapolsky avatar IgorGanapolsky commented on May 30, 2024

I am seeing slowness when I init. Then my whole app comes down to a crawl. The size of strings are small, less than few dozen characters - primarily an auth token from the server.

from secure-preferences.

scottyab avatar scottyab commented on May 30, 2024

Ok, right. In the next version 0.1.3, we should have a way of speeding the init up. Although once it's instantiated it should be ok. I'll create a task to review performance differences between secure prefs and standard shared prefs

from secure-preferences.

scottyab avatar scottyab commented on May 30, 2024

Closed as duplicate of #18

from secure-preferences.

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.