Opened 5 years ago
Closed 3 years ago
#5575 closed defect (fixed)
Opening Modelica.Media packages in OMEdit is still slow because of getInheritedClasses
Reported by: | Francesco Casella | Owned by: | Adrian Pop |
---|---|---|---|
Priority: | blocker | Milestone: | 1.19.0 |
Component: | NF API | Version: | |
Keywords: | Cc: | Adeel Asghar, albertoleva |
Description
I tried to open the sub-packages of Modelica.Media
in the Libraries Browser of OMEdit with a recent nightly build, already with nfAPI enabled by default.
Opening Opening Modelica.Media
itself is very fast, but when expanding that package, I get problems:
- in Linux, expanding the package takes about 15 seconds. Inspection of
omeditcommunication.log
shows that there are several calls togetInheritedClasses
that take several seconds each - in Windows, the situation is actually worse: I get three virtual cores working at full load for more than a minute, I see some of those
getInheritedClasses
calls in the log, but then OMEdit crashes, leaving the log unflushed.
I guess this should also be sorted out for the 1.14.0 release. @adrpo, maybe it already is on your branch, can you please check?
Attachments (1)
Change History (18)
comment:1 by , 5 years ago
by , 5 years ago
Attachment: | omeditcommunication.log added |
---|
the windows log (after adding fflush(NULL) in OMCProxy::logCommand)
follow-up: 4 comment:3 by , 5 years ago
@adeas31, can we have a setting in OMEdit to fflush the log after each command?
Basically add fflush(NULL) in OMProxy.cpp:375 on an if from the settings.
comment:4 by , 5 years ago
Replying to adrpo:
@adeas31, can we have a setting in OMEdit to fflush the log after each command?
Basically add fflush(NULL) in OMProxy.cpp:375 on an if from the settings.
See 65e0457/OpenModelica.
comment:5 by , 5 years ago
What is the flag/OMEdit option to enable this? I saw a --Debug
in the source code, which sounds a bit weird, since we already have --debug
for all debug flags
comment:11 by , 5 years ago
Milestone: | 1.14.0 → 1.15.0 |
---|
Releasing 1.14.0 which is stable and has many improvements w.r.t. 1.13.2.
This issue, previously marked as blocker for 1.14.0, is rescheduled to 1.15.0
comment:12 by , 4 years ago
Milestone: | 1.15.0 → 1.16.0 |
---|
Release 1.15.0 was scrapped, because replaceable support eventually turned out to be more easily implemented in 1.16.0. Hence, all 1.15.0 tickets are rescheduled to 1.16.0
I cannot reproduce this. For me opening Modelica.Media takes 1-2 seconds, opening Examples takes 3-4. What are your flags in OMEdit?