Performance issues with Latte

Questions and problems about using polymake go here.
wishcow
Posts: 6
Joined: 21 May 2014, 08:59

Performance issues with Latte

Postby wishcow » 23 May 2014, 19:37

Running $p->N_LATTICE_POINTS using Latte is very slow on my installation (polymake 2.13).
I wrote a simple perl script timing Latte's <i>count</i> command on the polytope:
[[1,0,0,0],[1,0,0,7],[1,0,7,0],[1,7,0,0]]
RESULT:
120
TIME: 0 wallclock secs ( 0.00 usr + 0.00 sys = 0.00 CPU)

Running a timer on $p->N_LATTICE_POINTS returns:
TIME: 1 wallclock secs ( 0.88 usr 0.01 sys + 0.01 cusr 0.01 csys = 0.91 CPU)
(This is consistent over repeated runs, and there are similar results for running both latte 1.7.1 and latte 1.6)

Is there some heavy overhead for running Latte from within polymake, or might there be some kind of problem with my configuration?

User avatar
gawrilow
Main Author
Posts: 423
Joined: 25 Dec 2010, 17:40

Re: Performance issues with Latte

Postby gawrilow » 23 May 2014, 20:45

One second extra time looks like a usual overhead for resolving a rule chain, sorting out preferences, etc. Between the property query and the actual call to the third-party software (latte) in background there are a lot of other activities. Especially the rule scheduling is notoriously slow. Usually, the computational tasks take much more than few milliseconds, so that the slowness of the perl machinery does not stand out so drastically.


Return to “Helpdesk”