question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ReactiveTools generate many model instances

See original GitHub issue

Currently, each call to @in, @out etc. generate a new model type. Generating many models is quite a waste of space, because types cannot be deleted.

The reason is that Stipple.Pages._pages are automatically updated:

  clear_type(__module__)
  instance = @eval __module__ @type()
  for p in Stipple.Pages._pages
    p.context == __module__ && (p.model = instance)
  end

Otherwise we could eliminate instance = @eval __module__ @type() and the model type would only be generated when calling @model or @type. @essenciary I am not familiar with _pages and when they are called. Can we move the

  for p in Stipple.Pages._pages
    p.context == __module__ && (p.model = instance)
  end

to a later point?

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:27 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
hhaenselcommented, Nov 16, 2022

I’ll give it a go.

1reaction
hhaenselcommented, Nov 16, 2022

Right!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chapter 2. Using reactive tools - Machine Learning Systems
To get ready to build full-scale reactive machine learning systems, ... Spark to build large-scale pipeline jobs like feature extraction and model learning....
Read more >
dbrattli/aioreactive: Async/await reactive tools for ... - GitHub
Everything runs on the asyncio base event-loop. No multi-threading. Only async and await with concurrency using asyncio. Threads are hard, and in many...
Read more >
Notes on Reactive Programming Part II: Writing Some Code
In this article we continue the series on Reactive Programming, and we concentrate on explaining some concepts through actual code samples.
Read more >
Reactive Downhole Tools
Reactive Downhole Tools designs and develops bespoke isolation solutions utilising high performance oil and water swelling elastomers, high pressure cup ...
Read more >
About - Reactive Technologies
In many cases, Reactive's tools replace modeling and guesswork, giving grid operators clear, accurate measurements for the very first time.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found