Code Monkey home page Code Monkey logo

Comments (4)

freight-stack avatar freight-stack commented on May 18, 2024 1

How about merging the Luigi and Margaret packages into this project? It is easier then to iterate and refactor the code base. We can pull them into single packages again when we are happy with their API.

from go-ssb.

cryptix avatar cryptix commented on May 18, 2024 1

Yes! Should probably internalize all these things to make this clearer.

from go-ssb.

cryptix avatar cryptix commented on May 18, 2024

Margaret does too much

Another problem is that margaret (our flume-like thingy) also does object decoding and exposes it through empty interfaces, which makes it hard to re-use buffers from previous reads, if all you want is pipe out a bunch of messages, like for replication.

I'm currently dabbling around a version of margaret that just exposes []byte or io.Readers, leaving the marshaling up to the API consumer.

This together with a muxrpc version that gives the user access to reading and writing muxrpc frames without the luigi piping issues outlined above, should result in a pub code that's producing much less overhead.

Currently it's easily a couple hundred megabytes per connection.

from go-ssb.

cryptix avatar cryptix commented on May 18, 2024

I'm experimenting with making copies of luigi.Broadcast with concrete types on the new rooms implementation. Much more readable code..!

from go-ssb.

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.