-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Static state in SPI could lead to staleness issues #142
Comments
Very true! I never considered stateful processors. What do you have in mind? |
It might be worthwhile to look at alternatives to the simple SPI model we've been using. Internally we've butted up against its limitations in a few ways:
Both problems are solvable, of course - just takes some thought beforehand. |
Selfpromotion, but could look at Crumb :) |
Also just saw your previous comment - what we do internally is processors are reused across modules (so we have a warm JIT cache. Buck build optimizations and whatnot). So when we invoke the lookup, we just look them up again for the current classpath |
(testing whether I still have maintainer access by closing an old issue and re-opening it. sorry zac) |
If you have a TypeProcessor that does stateful things, you could run into issues with that state remaining. Not sure if the static approach was intentional, but just mentioning.
The text was updated successfully, but these errors were encountered: