Re: GLPSOL in webassemby faster than native ?

Michael Hennebry <[email protected]> Thu, 24 Sep 2020 14:18:45 -0500 (CDT)
Newsgroups gmane.comp.gnu.glpk
Message-ID <[email protected]>
On Thu, 24 Sep 2020, Domingo Alvarez Duarte wrote:

> I just got glpsol with "long double" working and add binaries for anyone that 
> want to test then here https://github.com/mingodad/GLPK/releases
>
> As noted there it'll benefit from tuning the constants in src/glpk_real.h
>
> Any help/suggestion/comment is welcome !

Note that using long doubles everywhere
would slow down a memory bound computation.
Fetching more data would be required.

One might introduce glp_double_t.
C99 uses double_t for the type in which unnamed
intermediate results of double calculations are stored.

Use glp_double_t for locals that are not arrays,
especially running totals.
Do the casts to ensure that desired calculations
are actually done in glp_double_t.

-- 
Michael   [email protected]
"Sorry but your password must contain an uppercase letter, a number,
a haiku, a gang sign, a heiroglyph, and the blood of a virgin."
                                                              --  someeecards