Mail Archives: djgpp/2001/10/01/22:03:49
I finally got in the results of my Borland 32-bit console
application as ported to now both DJGPP 2.03/GCC 2.95.3,
and MSVC++ 6.0....
if anyone wants the actual break down:
Program #1:
C++Builder 3.0 Pro Console32: 1h 33m 07s
DJGPP: 38m 33s <---
MSVC++ 6.0: 1h2m24s
Program #2:
C++Builder 3.0 Pro Console32: 8m 15s
DJGPP: 6m 37s
MSVC++ 6.0: 5m 20s <-----
Program #1 scans entire lines of text ("sentences") using
strstr(), then inspects the left and right -hand sides for
white-space, and/or punctuation delimiters... then applies
word-substitutions... deconstructing and then reconstructing
the "sentence" each time a term matches...
Program #2 breaks sentences down into individual white-space and
punctuation -delimited words, and applies an alphabetized
lookup/substitution to each individual word...
Conclusion:
It pays to break down a "sentence" into individual "words", and
apply an alphabetized lookup (and substitution) , instead of any
efficient "deconstruction/reconstruction" of the entire sentence
on a word-by-word matching basis....
What a trip trying to port something to MSVC++ 6.0 !!
_findfirst / _findnext / _findclose.... sheesh!
I guess I am ready to compile this for NT now... hehe.
email: radsmail AT juno DOT com
http://members.tripod.com/~RadSurfer/
Join us on Yahoo at:
http://groups.yahoo.com/group/BorlandCPPBuilder
for informal discussions about all versions of C++Builder...
[Computer programming for Windows 95, and Console32]
(you must be a Yahoo member to join)
- Raw text -