Giter Club home page Giter Club logo

Comments (6)

TheNeikos avatar TheNeikos commented on June 12, 2024

How do you think that could work?

and are you suing v1 or v2? In v2 you can easily switch out the backend and compress what you want, maybe that could help?

from rustbreak.

trsh avatar trsh commented on June 12, 2024

@TheNeikos Im using v2.

How do you think that could work?

I dont know. Some property, and then its done in background?

from rustbreak.

Boscop avatar Boscop commented on June 12, 2024

I also had the issue that serialization was taking a long time (with v1) so I switched from json to bincode format.

Btw, is there a way to store the binary schema in the file, too, so that the data can be recovered later without the application, e.g. with a tool that converts the binary data to json (using the stored schema for reading with bincode)?

(Because the structs / schemas of my data that I store with rustbreak change often, but I want to be able to recover old data that my application stored, when I don't remember how the structs looked back then..)

from rustbreak.

trsh avatar trsh commented on June 12, 2024

@Boscop can't answer your question. Anyways @TheNeikos , I think file minification should be a must feature for this lib. The files are unnecessary large because all of nextlines, spaces, etc.

Upd:

Maybe its not possible for Yaml? But for ron?

from rustbreak.

TheNeikos avatar TheNeikos commented on June 12, 2024

Please take a look at: https://github.com/TheNeikos/rustbreak/blob/master/src/deser.rs#L79

You can create your own Serialization/Deserialization strategy. If you would rather want to have a non-prettified rustbreak database then you can do so by creating your own!

from rustbreak.

trsh avatar trsh commented on June 12, 2024

Ok, then Im closing this for now

from rustbreak.

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.