I plan to populate an immutable HashMap inside a scala class instance using a builder, then expose the hashMap with a method calling result() on the builder.
Is this call very cheap or is it worth saving this result in a member field for faster access? The operations that run after each call are on the order of a couple (say 5) calls to the exponential function.