Coder Social home page Coder Social logo

Lag While Closing about bookworm HOT 4 CLOSED

babluboy avatar babluboy commented on May 20, 2024
Lag While Closing

from bookworm.

Comments (4)

Philip-Scott avatar Philip-Scott commented on May 20, 2024

Or only save the state of the book you are reading. You might be doing extra unnecessary writes ;)

from bookworm.

babluboy avatar babluboy commented on May 20, 2024

@Philip-Scott Thats a good thought, at the moment I'm updating all the books data into the DB, irrespective of whether the user opened it or not. So definite scope for improvement.
However, using the async with callback I have managed to run the DB update without blocking the window closure. Done a few tests with around 30 books in the library and works fine, so closing this issue.

from bookworm.

babluboy avatar babluboy commented on May 20, 2024

@choyan Marking you for this issue, hoping that you have some more ePubs to test this issue with around 50+ books when you have some time. Key sucess criteria:
1- When you close Bookworm, it should close immediately without lag
2- When you open Bookworm again, it should have "remembered" the last page of all the books which you would have opened in the last session and open those books from the correct page

from bookworm.

choyan avatar choyan commented on May 20, 2024

@babluboy I've checked with more 60 books in the library. And opened several books.
1- The app is closing instantly without lag.
2- The database is working fine and saving the book state properly.

from bookworm.

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.