ReactiveTools generate many model instances
See original GitHub issueCurrently, 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:
- Created 10 months ago
- Comments:27 (8 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ll give it a go.
Right!