problem with new xcaswininst
Modérateur : xcasadmin
problem with new xcaswininst
Hi,
I'm wondering what happened to the new Xcas version (xcaswininst.exe)?
This new version is SO SLOW that it's in fact unusable!
It happens with lots of files loaded via 'Help > Examples' - e.g. demo\calcform.xws:
After loading this file in the previous versions (installed with xcasinst.exe or xcas64inst.exe), the calcsheet is calculated and loaded immediately (around 1 sec) - with the new version from xcaswininst.exe it needs 3:35 min until it appears!
And that's not the only file which takes incredibly long ...
Franz
I'm wondering what happened to the new Xcas version (xcaswininst.exe)?
This new version is SO SLOW that it's in fact unusable!
It happens with lots of files loaded via 'Help > Examples' - e.g. demo\calcform.xws:
After loading this file in the previous versions (installed with xcasinst.exe or xcas64inst.exe), the calcsheet is calculated and loaded immediately (around 1 sec) - with the new version from xcaswininst.exe it needs 3:35 min until it appears!
And that's not the only file which takes incredibly long ...
Franz
Re: problem with new xcaswininst
Perhaps something related to Unix vs Windows newlines when loading files, I will investigate.
Re: problem with new xcaswininst
The parser is way slower than with cygwin, I have no idea why : it's exactly the same bison/flex output than on Unix or with cygwin.
Re: problem with new xcaswininst
Ive already seen such compiler differences in some other programs:
e.g. the program DosBox-X contains several different versions, and the VS build is about 2.5 tmes slower than the MinGW version.
I don't understand why you've changed your compiler (as I can see on all these new DLLs), when the previous version worked much better!?
But ok, no problem for me - I'll just stay with your old versions xcasinst and xcas64inst, and not update Xcas anymore ...
Franz
Re: problem with new xcaswininst
Actually the cygwin compiler has it's own problems. For example, many users report that the 64 bits version does not work with their version of windows and must use the 32 bits version. There are also problems with 3d.
The mingw version is an attempt to fix these problems. It is still in tests, and the slowness problem is a serious problem. I will keep compiling the cygwin version. Unless I or someone else find a workaround.
The mingw version is an attempt to fix these problems. It is still in tests, and the slowness problem is a serious problem. I will keep compiling the cygwin version. Unless I or someone else find a workaround.
Re: problem with new xcaswininst
Good news! I found why the parser was slow: it's inside the chartab2gen function in gen.cc, parsing floats was done with a mutex protection, and the mutex check is very slow. But it can be disabled in mingw. I will update xcaswininst.exe soon.
Re: problem with new xcaswininst
Good news? Not really ...
I've now tested the new version of today, and it's only a bit faster -
it still needs ~2 min compared to 1 sec in the 64bit version (or the old 32bit version).
IMO there must be any other serious problem, because parsing a file can't take more than 100-times longer.
Edit: I've now made a few tests (changing the commands in calcform.xws), and the problem seems to be the
commands 'plot(...)' and 'plotfield(...)' with their huge datasets.
If I remove those commands, then the file loads quickly as usual.
I've now tested the new version of today, and it's only a bit faster -
it still needs ~2 min compared to 1 sec in the 64bit version (or the old 32bit version).
IMO there must be any other serious problem, because parsing a file can't take more than 100-times longer.
Edit: I've now made a few tests (changing the commands in calcform.xws), and the problem seems to be the
commands 'plot(...)' and 'plotfield(...)' with their huge datasets.
If I remove those commands, then the file loads quickly as usual.
Re: problem with new xcaswininst
Indeed, giacxcas.dll was not updated. Should be fixed now.
Re: problem with new xcaswininst
Yep, now it's working again - many thanks!
Regards,
Franz
Regards,
Franz