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 / 14530
14529  |  14531
Subject: 
Re: how does a line ends?
Newsgroups: 
lugnet.cad
Date: 
Sat, 7 Apr 2007 22:34:23 GMT
Viewed: 
1709 times
  
In lugnet.cad, Travis Cobbs wrote:
   In lugnet.cad, Chris Phillips wrote:

   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.

Google to the rescue.

ROSCO



Message has 1 Reply:
  Re: how does a line ends?
 
(...) Thanks, ROSCO. I took that code and modified it to use char instead of _TCHAR, and got timings of 720-750ms, compared to the 750-780ms I got with my original one. I then modified it to support CR and LF interchangeably, and got back to the (...) (17 years ago, 7-Apr-07, to lugnet.cad, FTX)

Message is in Reply To:
  Re: how does a line ends?
 
(...) 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 (...) (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