[Tinymux] News
Sean Hunter
downloadcom at dagnabit.org
Wed Nov 24 23:28:58 EST 2004
>2.) Hey Brazil, is it still faster to use softcoded news than the hardcoded? I remember a version or two ago you'd mentioned it was (or was more efficient or something). Just curious; I prefer the hardcoded.
>
>
The news has been rewritten a bit. I'd have to say news hardcode is
faster. Instead of having to first look up the objects attribute and
then parse/execute it, it goes directly to the correct position using
seek() or similar in the file and reads the length (I believe @readcache
keeps all this in some hashmap or similar). Both have to access the hard
drive if the object isn't in memory, just getting the newsfile entry
should be particularly faster.
If you really wanted to, you could write your own hardcode function that
reads in the newsfile, modifies the correct entry, and writes it back
out using some sorting then calls @readcache. I wrote up a GUI editor in
C++ that uses wxWidgets to let edit newsfiles and view them like a
website in the program, but overall it'd be easier to use the folder
formatted version and use those scripts.
If anyone wants this program, just ask and I'll send you it as soon as I
figure out of it still works.
More information about the Tinymux
mailing list