[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-glpk] Performance of the GLPK terminal hook function
From: |
glpk xypron |
Subject: |
[Help-glpk] Performance of the GLPK terminal hook function |
Date: |
Wed, 15 Sep 2010 00:19:27 +0200 |
Hello Andrew,
I implemented the terminal hook function.
My program reads a GMPL file and solves it. The GMPL file contains
a line
printf "The smallest bag contains %d marbles\n", sum{n in minBag} n;
I get the following output:
hook('Reading model section from marbles.mod...
')
hook('53 lines were read
')
hook('T')
hook('h')
hook('e')
hook(' ')
hook('s')
Calling the hook function for every single character can cause
performance problem. I suggest the hook function to be called
for complete output lines.
Best regards
Xypron
--
GMX DSL SOMMER-SPECIAL: Surf & Phone Flat 16.000 für nur 19,99 Euro/mtl.!*
http://portal.gmx.net/de/go/dsl
- [Help-glpk] Performance of the GLPK terminal hook function,
glpk xypron <=