Which is faster..
type
UsersRec = record
FirstName : String[35];
LastName : Stirng[35];
Alias : String[60];
Password : String[12];
end;{record usersrec}
Var
Users : File of UsersRec;
Users : UsersRec;
begin
{etc etc}
end.
Or the same, but using pointers.
Quoting Chris Hoppman to All <=-
type
UsersRec = record
FirstName : String[35];
LastName : Stirng[35];
Alias : String[60];
Password : String[12];
end;{record usersrec}
Var
Users : File of UsersRec;
Users : UsersRec;
begin
{etc etc}
dunno that speed is really a factor... the type of memory used is different though...
Which is faster..
Or the same, but using pointers.
Bye <=-
dunno that speed is really a factor... the type of memory
used is different though...
hrm, my program is real mode only. I don't think I can
get it to use dmpi, but can use xms,ems,or disk.
Talk to me like a 11 year old that is learning this for
the first time, because I am learning this for the first
time and need someone to talk that slow and explain
everything to me. I know alot, but when it comes to
using real mode vs protectted dmpi mode, heap, stack,
xms, ems, disk. I need just that. (btw i am 25.. I just
said 11 cause i would explain things more slowly to a 11
yr old)
In modern machines with gighz machines and such it
really isn't that much unless your doing a data hog
like a Database program. But a rule of thumb basically
anything is better with pointers. The main benefit is
data storage of course but speed helps.
So it depends on how many records you might be dealing with.
A few hundred who cares. A million then yeah use pointers. :)
Quoting Chris Hoppman to Scott Adams <=-
In modern machines with gighz machines and such it
really isn't that much unless your doing a data hog
like a Database program. But a rule of thumb basically
anything is better with pointers. The main benefit is
data storage of course but speed helps.
So it depends on how many records you might be dealing with.
A few hundred who cares. A million then yeah use pointers. :)
How, about 2-10 records at a time. The program is okay when one user
is on the bbs, but when a second or third user is on the bbs then it
is all hell tring to type something in the telnet client. The keys
seem like they stick. (Wait a few seconds, before they get printted to
the screen).
The ansi screens scrolls about 3 lines then pauses then scrolls two
more then pauses then scrolls 5 more (not in that order, but in
general it does that). When two users are online. It sucks and I am looking to resolve the issue of cpu usage then maybe speed up the program.
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,024 |
Nodes: | 17 (1 / 16) |
Uptime: | 18:32:40 |
Calls: | 503,230 |
Calls today: | 8 |
Files: | 233,951 |
D/L today: |
1,132 files (117M bytes) |
Messages: | 440,665 |
Posted today: | 1 |