| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | speed... |
JB> Hi Hans. JB> 09-Mar-04 20:15:24, Hans Andersson wrote to All HA> Compiled QuickBasic seems to runs faster the QuickC 2.5 code. HA> Odd!!! JB> doing what? JB> some things in C are inefficient. eg, printf() isn't exactly the most JB> efficient way to outpuut text... also some string manipulation is slow JB> due to C not storing a length number for each string etc... JB> also some things in C are often done in inefficient ways. -=> Bye <=- I am playing with an old BBS program written i QBasic - reads first in - start files - such as, config.dat, lang.dat, lang.ndx, runtime.dat, opens a logfile and a members database, reads in commands and area menus. Lots of string handling - for writing messages and searching for files etc. Have a version written i C, it is much slower reading/storing files and handling strings. It feels quite slow and the code size is bigger also - about 220k. Qbasic is only 150k and much faster. Mvh. H.A. --- Maximus/2 3.01* Origin: Databasen TankBaren, +46-920-257910 (2:201/209) SEEN-BY: 633/267 270 @PATH: 201/505 106/2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.