Subject:
|
Re: how does a line ends?
|
Newsgroups:
|
lugnet.cad
|
Date:
|
Sat, 7 Apr 2007 22:27:35 GMT
|
Viewed:
|
1782 times
|
| |
| |
In lugnet.cad, Chris Phillips wrote:
|
It is interesting that it was that much time difference. Are these the total
load times, or just profiling of the time spent inside the fgets() routines?
I see one or two things you might tighten up in this code, but nothing thats
going to make it 50% faster.
|
I timed the file reading/parsing portion of the model load. It would have been
more difficult to time the actual amount of time spent inside fgets/myFgets, so
realistically its likely that myFgets is even slower in comparison to fgets.
The timed portion makes up roughly 1/4 to 1/3 of LDViews overall file load
time. The rest of the time is spent doing primitive substitution, curve
smoothing, OpenGL display list compilation, and random other processing (like
finding out how big the model is).
|
I do wonder how this code compares to the stdlib fgets() implementation that
you are using. Did you modify the original fgets, or did you write this one
from scratch? Any chance you could post the original fgets code for
comparison?
|
No idea. Ive never looked at open source fgets source code, and Microsoft
fgets source code isnt available to the general public. The above timings
happened using Visual C++ 2005 Express.
--Travis
|
|
Message has 1 Reply:
Message is in Reply To:
| | Re: how does a line ends?
|
| (...) That was quick! Thanks for taking the time to indulge me... (...) It is interesting that it was that much time difference. Are these the total load times, or just profiling of the time spent inside the fgets() routines? I see one or two things (...) (18 years ago, 7-Apr-07, to lugnet.cad, FTX)
|
24 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|