Skip to content

Recycle arrays in createDistinctM call. #5

@ctrimble

Description

@ctrimble

HPROC is telling me that the arrays being created in the CombMathUtils.createDistinctM(int[]) call are wasting time. Some options for improving the performance:

  • Object recycling - this may help if the indirection required is faster than the allocation of the array and the eventual GC that will happen. Unfortunately, the standard int array factory provided by Javolution is causing NPEs in my code.
  • Make the CombMathUtils thread local - this would allow the repeated indirections required by factories to be consolidated into a single indirection when getting the math utils object.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions