Re: MrProject 0.8pre released
Richard Hult <[email protected]>
| Newsgroups | gmane.comp.gnome.apps.mr-project.user |
|---|---|
| Message-ID | <1040643004.30056.381.camel@sliff> |
sön 2002-12-22 klockan 17.52 skrev Benjamin BAYART: > To implement this, I write a small C program that will be used as > a CGI script to display the time-tables. But it's really slow. A > quick "gprof" on the resulting program show that some function are > called approx. half a million time for a relatively small project: > 11.36 0.10 0.10 470198 0.00 0.00 mrp_calendar_get_type > 11.36 0.20 0.10 89082 0.00 0.00 mrp_calendar_get_day Those are part of the GObject type system, and are used for type checks. If you build without the glib debug type checking enabled, those should get cut back a lot. But that is kind of fixing the symptom instead of fixing the real problem. Libmrproject is not optimized at all yet, since all functionality is not added and we haven't done profiling etc. The real solution is to not keep rescheduling as soon as something is done, especially when loading a file or other "batch" type operations, where a single rescheduling would be enough after the operation is done. Other than that, there are a lot of small optimizations that can be done I'm sure, but I don't think they would matter much once the above is fixed. > To total time to load the project is about 5s. which is a lot for a > CGI script, even if it's no trouble for MrProject... That sounds like a lot, it sounds like a bug. Is it a huge file? If you send me a test case, maybe I can take a look. Regards, Richard -- Richard Hult [email protected] CodeFactory AB http://www.codefactory.se/