mirror of
https://github.com/zaaarf/geb.git
synced 2024-11-21 22:24:50 +01:00
chore: readme update
This commit is contained in:
parent
73bdb62c34
commit
1a762fb4da
1 changed files with 2 additions and 9 deletions
11
README.md
11
README.md
|
@ -1,14 +1,7 @@
|
|||
# Geb!
|
||||
GEB (short for _Generative Event Bus_) is an event bus leveraging annotation processing to achieve maximum possible speed.
|
||||
|
||||
## The trick
|
||||
There is no trick, it's just basic metaprogramming.
|
||||
|
||||
Suppose that you have a simple event system, with annotated listeners receiving Event objects. To process something like this at runtime, you need to ask every class to subscribe to the bus, then iterate all of its methods to find the annotated ones to call.
|
||||
|
||||
That works, of course, but it's not that fast. Ah, if only you knew in advance, such as at compile time, who's going to get called with what... oh, wait, you do.
|
||||
|
||||
GEB is just a basic event bus in itself; the actual magician is the [processor](https://github.com/zaaarf/geb-processor), who writes into each event direct calls to all subscribers, to take as little time as possible.
|
||||
GEB is just a basic event bus in itself; the actual magician is the [processor](https://github.com/zaaarf/geb-processor).
|
||||
|
||||
## What's with the name?
|
||||
"GEB Bus" kind of sounds like "Jeb Bush" and I think it's very funny. Please clap.
|
||||
"GEB Bus" kind of sounds like "Jeb Bush" and I think it's very funny. Please clap.
|
||||
|
|
Loading…
Reference in a new issue