Skip to content
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

Merged
merged 2 commits into from Jun 22, 2020

Conversation

hmanwani-rh
Copy link
Owner

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

@hmanwani-rh hmanwani-rh changed the title BXMSDOC-5900: Added lambda introspection section in performance tuning chapter WIP BXMSDOC-5900: Added lambda introspection section in performance tuning chapter May 28, 2020
@@ -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::

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.

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.

Copy link

@tkobayas tkobayas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. thanks!

Copy link

@kaldesai kaldesai left a 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.

Copy link

@hellowdan hellowdan left a 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!

@hmanwani-rh hmanwani-rh merged commit e66384c into BXMSDOC-5900-master-final Jun 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants