tweakable : Java Glossary
home T words local find no local find frame, full screen Google search web for topic jump to footer translate with Babelfish 2007-07-31 by Roedy Green ©1996-2008 Canadian Mind Products
Go to : punctuation 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z (all)
tweakable
aka free parameter. A static final constant that may be safely varied between limits. The program still behaves the same way, no matter what the value, but it may run faster at the optimum setting. Tweakables include such things as ideal buffer sizes, maximum number of threads to spawn (size of a thread pool), best initial sizes for various Hashtables and ArrayLists, how frequently to invoke the garbage collector and even the size of the virtual heap. Tweakables can also be discrete variables that for example may select between one of seven different sorting algorithms, or between a CPU intensive vs a RAM intensive algorithm.

I envision a time when automated optimisation process will monitor your program every time it runs in production, automatically adjusting the tweaking parameters until it gradually learns and homes in on the optimal settings for running under various conditions using some sort of statistical multiple regression analysis and binary search, working somewhat like a numerical differential equation solver.

The problem is the optimum settings are not universal. They depend on the customer’s hardware, JVM and data size and characteristics. e.g. one customer may always present data pre-sorted, or sorted in precisely reverse order. Different customers use different SQL engines and different Servlet wombs.

Tweakables could be external to the Java program such as the optimum VM heap size or stack allocation. Too little and you GC needlessly frequently, too big and your virtual RAM fills with paged out deadwood interspersed with tiny objects.


CMP_homejump to top
CMP logo
feedback Please email your feedback for publication, errors, omissions, broken/redirected link reports
and suggestions to improve this page to Roedy Green : feedback email
made with CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[65.110.21.43]
Your face IP:[38.103.63.16] The information on this page is for non-military use only.
You are visitor number 6,291. Military use includes use by defence contractors.
You can get a fresh copy of this page from: or possibly from your local J: drive (Java virtual drive/Mindprod website mirror)
http://mindprod.com/jgloss/tweakable.html J:\mindprod\jgloss\tweakable.html