Re: HLA Lib
- From: "vid512@xxxxxxxxx" <vid512@xxxxxxxxx>
- Date: 19 Mar 2007 17:37:40 -0700
Actually, the "separate predicting number of digits before padding"can you post links please?
was researched quite well. Take a look at the threads over in CLAX for
the idea.
I tried a *lot* of different ways to do generic numeric
conversion. (actually, the "subtract" algorithm in the library still
needs to be replace by Terje's algorithm; "subtract" is faster on a P4
[where I developed the code], but Terje's algorithm is faster on most
other processors).
allright, i will do some comparison to FASMLIB speed. (and maybe steal
some faster HLAlib algos) We'll see, algos in FASMLIB are simple (not
optimized) and straightforward.
Just something I'm avoiding. If someone wants to do buffered I/O, I
encourage them to rethink their algorithms if speed is an issue.
of course, library shouldn't be used where speed matters a lot. But as
long as you have initialization code, and things CAN be done faster
(with buffering), why not? It's your decision to increase simplicity
of usage, thus limiting yourself.
some init and finishing codes are a must-have for solid design
library. How are you going to implement heap for linux without it?
The first memory-management call sets things up. There is no
"finishing code" required for heap management.
I looked at your heap manager a little. First of all - do you rely on
system to clean up all mappings after your app? That isn't very nice
way to do things, and shouldn't occur in professional code.
Otherwise, your heap manager seems good.
Personally i think aligning blocks to 8 bytes is not enough,
especially if you use dynamic strings often (i believe HLA does this).
I decided to set 64 byte aligning, wasting more memory if there are
lot of blocks, but making small consectutive enlargings of block much
faster.
_geti_ is based around readln. Readln will return a line feed theSorry, missed the modification.
*first* time EOF occurs, it raise an exception if you try to read more
data from the input. This behavior, btw, was modified based on *your*
suggestions from the last time we had this discussion.
Still, i cannot say i would be satisfied with such behavior. This
silently emulates end of line which is not there. You should AT LEAST
mention it in documentation, but i think this deserves more proper
solution than such workaround. Your readln routine should report EOF
(special exception?) instead of simulating EOL there.
.
- Follow-Ups:
- Re: HLA Lib
- From: randyhyde@xxxxxxxxxxxxx
- Re: HLA Lib
- References:
- HLA Lib
- From: vid512@xxxxxxxxx
- Re: HLA Lib
- From: randyhyde@xxxxxxxxxxxxx
- Re: HLA Lib
- From: vid512@xxxxxxxxx
- Re: HLA Lib
- From: randyhyde@xxxxxxxxxxxxx
- Re: HLA Lib
- From: vid512@xxxxxxxxx
- Re: HLA Lib
- From: randyhyde@xxxxxxxxxxxxx
- HLA Lib
- Prev by Date: Re: Ten years later
- Next by Date: Re: HLA Lib
- Previous by thread: Re: HLA Lib
- Next by thread: Re: HLA Lib
- Index(es):
Relevant Pages
|