1 Reply Latest reply on Apr 8, 2016 9:29 AM by William Burns

    Infinispan initial cache start size

    tomas11 Novice

      Hi all

       

      Is there any configuration option in Infinispan to pre-set size of cache? So if there is expectation that cache would have > 10 000 items the performance because of initial cache start size would be better.

      Or this does not affect Infinispan performance?

       

      Thanks

      Tomas

        • 1. Re: Infinispan initial cache start size
          William Burns Expert

          There is no configuration option currently to set the initial size of the underlying Map.  It defaults to 128 and is doubled each time when it needs to expand.  It will probably make little impact, but you can test the difference easily by tweaking the DefaultDataContainer class and changing 128 to 16384 ( a number larger than your entry count) and see if you notice any impact.  If you want to you could create an improvement for this.