Giter VIP home page Giter VIP logo

Comments (2)

BuckarooBanzay avatar BuckarooBanzay commented on July 23, 2024

Thanks for the kind words πŸ‘

Compression is currently only applied on the database level (https://github.com/blockexchange/blockexchange_server/blob/9f0af3fdb49d89a01a11f2585406c5faaf7fe136/src/util/serializer.js#L64-L67).
There is no compression for the in-flight map-data yet, it is transferred as plain json-data (it may be compressed with gzip if the client can handle that, haven't tested that yet)

In the future, if there is significant benefit in another compression-strategy, it could be added with different version-headers, i don't see a problem with retrofitting that later 😏

from blockexchange.

BuckarooBanzay avatar BuckarooBanzay commented on July 23, 2024

closing this, i rewrote the server-part from nodejs to go and also changed the serialization-format and compression:

The data and metadata is now compressed with deflate (both the server and the mod can use this) so the most cpu-intensive operation can be done on the client/mod side, the server now only needs this for the preview, all other things are basically just pass-through.
In-flight requests encode the binary data now with base64
Docs: https://github.com/blockexchange/blockexchange_server#serialized-mapblock-format

About the size-issues: i don't have worries about that yet, also: air-only blocks are handled now properly :)

Feel free to comment/reopen if you have ideas or issues πŸ‘

from blockexchange.

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.