To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cadOpen lugnet.cad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / 14528
14527  |  14529
Subject: 
Re: how does a line ends?
Newsgroups: 
lugnet.cad
Date: 
Sat, 7 Apr 2007 22:27:35 GMT
Viewed: 
1686 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 that’s 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 it’s likely that myFgets is even slower in comparison to fgets. The timed portion makes up roughly 1/4 to 1/3 of LDView’s 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. I’ve never looked at open source fgets source code, and Microsoft fgets source code isn’t available to the general public. The above timings happened using Visual C++ 2005 Express.

--Travis



Message has 1 Reply:
  Re: how does a line ends?
 
(...) (URL) Google to the rescue>. ROSCO (17 years ago, 7-Apr-07, to lugnet.cad, FTX)

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 (...) (17 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
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR