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
WIP BXMSDOC-5900: Added lambda introspection section in performance tuning chapter #20
Conversation
@@ -36,3 +36,6 @@ try { | |||
|
|||
For information about built-in event listeners and debug logging in the {DECISION_ENGINE}, see xref:engine-event-listeners-con_decision-engine[]. | |||
-- | |||
|
|||
Use lambda introspection for executable models to configure the cache size:: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LambdaIntrospector is used internally by default. This configuration is not to 'enable' it but to change the cache size. So the sentence would be like
Configure LambdaIntrospector cache size for executable model build::
@@ -36,3 +36,6 @@ try { | |||
|
|||
For information about built-in event listeners and debug logging in the {DECISION_ENGINE}, see xref:engine-event-listeners-con_decision-engine[]. | |||
-- | |||
|
|||
Use lambda introspection for executable models to configure the cache size:: | |||
You can enable lambda introspection to configure the size of `LambdaIntrospector.methodFingerprintsMap` cache. The default size of the cache for an executable model is `32`. Small cache size optimizes the usage of memory for an executable model. For example, you can configure system property `drools.lambda.introspector.cache.size` to `0` for optimized memory usage. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The explanation seems to encourage to set small cache size. But the default size '32' is fine for most cases. I think we should state it is a trade-off between memory and performance. So it would be like
You can configure the size of `LambdaIntrospector.methodFingerprintsMap` cache which is used in executable model build. The default size of the cache is `32`. Smaller cache size reduces the usage of memory while it may slow down the build performance. For example, you can configure system property `drools.lambda.introspector.cache.size` to `0` for the least memory usage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @hmanwani-rh , I reviewed the section and everything looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it looks good to me, thanks!
Added Use lambda introspection for executable models to configure the cache size section in performance tuning chapter
See JIRA: https://issues.redhat.com/browse/BXMSDOC-5900
Rendered Output:
Decision engine in Red Hat Process Automation Manager
Decision engine in Red Hat Decision Manager