Menu

#56 Slow processing of big arrays of numbers

Next Release
not-fixable
nobody
perfo (1)
normal
minor
Always
none
Perfo
Linux
2019-08-07
2019-08-06
No

Adacontrol is very slow at processing the attached file of 8 instructions declaring big arrays of numbers: 20 min on a i7-8700K @ 3.70GHz
The file compiles in less than 0.5s.

Maybe an optimisation is possible?

1 Attachments

Discussion

  • Pascal MALAISE

    Pascal MALAISE - 2019-08-06

    With the source file.

     
  • Jean-Pierre Rosen

    • status: new --> not-fixable
     
  • Jean-Pierre Rosen

    Unfortunately, this is a known problem due to the way ASIS represents aggregates (as linked lists). When going from elements to the enclosing construct, ASIS has to go through the whole list. Therefore, when all elements are analyzed, the algorithm goes N**2. Since it is due to the internals of ASIS, there is nothing AdaControl can do about it.

     
    • Pascal MALAISE

      Pascal MALAISE - 2019-08-07

      Fair enough. At least the problem and analysis are traced.

       

Anonymous
Anonymous

Add attachments
Cancel





Auth0 Logo