clojurewerkz / meltdown Goto Github PK
View Code? Open in Web Editor NEWClojure interface to Reactor, an event-driven programming and stream processing toolkit for the JVM
Clojure interface to Reactor, an event-driven programming and stream processing toolkit for the JVM
Meltdown has at least one show stopper bug in it from Reactor v1:
E.g.: running ~4k records through a basic reactor in meltdown, at some point it'll hit this exception
ERROR compass.reactor: {:data #error {
:cause Index: 6396, Size: 3982
:via
[{:type java.lang.IllegalStateException
:message Index: 6396, Size: 3982
:at [reactor.event.dispatch.AbstractLifecycleDispatcher dispatch AbstractLifecycleDispatcher.java 150]}
{:type java.lang.IndexOutOfBoundsException
:message Index: 6396, Size: 3982
:at [java.util.ArrayList rangeCheck ArrayList.java 657]}]
:trace
[[java.util.ArrayList rangeCheck ArrayList.java 657]
[java.util.ArrayList get ArrayList.java 433]
[reactor.event.dispatch.AbstractSingleThreadDispatcher allocateRecursiveTask AbstractSingleThreadDispatcher.java 42]
[reactor.event.dispatch.AbstractLifecycleDispatcher dispatch AbstractLifecycleDispatcher.java 131]
[reactor.core.Reactor notify Reactor.java 242]
[clojurewerkz.meltdown.reactor$notify invokeStatic reactor.clj 73]
[clojurewerkz.meltdown.reactor$notify invoke reactor.clj 68]
Due to reflection, the throughput tests aren't giving the correct impression of the throughput/overhead of the library.
If you add a ^CountDownLatch type hint to the consumer:
https://github.com/clojurewerkz/meltdown/blob/master/test/clojurewerkz/meltdown/throughput_test.clj#L35
This gives me a 10x speedup using RingBufferDispatcher, and the events/second for a no-op consumer are in the millions, as advertised.
Hello,
What do I need to do after using channel? Close, cancel or what? In my program I restart the system if some fatal error happen. So, how to I dispose the used channel?
Best Regards
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.