Closed acodili-jg closed 2 weeks ago
I'll merge this once I get the cache system built.
How are you addressing: lambdas on the heap and lambda closure?
Do you think performance degradation when logging is worth it? If so, could we get some profiling done to know what kind of hit these closure-accessing lambdas cause?
*not being condescending, genuinely curious to hear your take
These didn't come to my mind before being mentioned. Though most lambda-fications are mostly done to ALUtils
(and code calling to its members), I was over thinking about limiting the number of lambda closures. Right now, I'm currently thinking about making an alternative to (not outright replace) ALUtils.checkErrors(Consumer<String>)
as I'm aiming to use parameterized message logging to replace most lambdas that are connected to ALUtils
.
Inactive and outdated. I haven't checked in a while but I think it is better to create a new PR if this is still needed (and maybe start over since these aren't big changes) and close this one for now.
Changes from #105:
Removals
boolean ALUtils.checkErrors(Supplier<String>)
Additions
Optional<String> ALUtils.consumeErrorMessage()
boolean ALUtils.logAndConsumeApplyError(String, int, String, int)
boolean ALUtils.logAndConsumeError(Object)
boolean ALUtils.logAndConsumeMultiApplyError(String[], int[], String, int)
boolean ALUtils.logAndConsumeSetError(String, String, String, float)
boolean ALUtils.logAndConsumeSetError(String, String, int, float)
boolean ALUtils.logAndConsumeSetError(String, int, String, float)
Changes
boolean ALUtils.errorApply(String, int, String, int)
boolean ALUtils.logAndConsumeApplyError(String, int, String, int)
boolean ALUtils.errorApply(String[], int[], String, int)
boolean ALUtils.logAndConsumeMultiApplyError(String[], int[], String, int)
boolean ALUtils.errorProperty(String, String, int, float)
boolean ALUtils.logAndConsumeSetError(String, String, int, float)
boolean ALUtils.errorProperty(String, int, String, float)
boolean ALUtils.logAndConsumeSetError(String, int, String, float)
boolean Cache.generate(Consumer<String>)
boolean Cache.generate(LogBuilder)
boolean Cache.generate()
might supersede this methodOld content
- ~~`checkErrors(Supplier