Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
BASFILE - Converts small files to BAS code.
#15
Hi @RhoSigma!  Thanks for those tips!  Never thuoght of pre-SPACEing the needed string and MID$ing it in.  What a great idea.  I'll get working on that and see what happens.  THANKS!

EDIT: I just roughly re-wrote the Encoder using SPACE$/MID$ swapping like you suggested, already a HUGE speed increase!  On my laptop a 200k file took 5.55 secs encoding the old way - but only .05 sec with your way.  Wow!

EDIT2: Just re-did the decoder now, just as fast!  200k string decoded in the blink of an eye!  Now I'm going to data-test to make sure data is not getting messed up. 

- Dav

Find my programs here in Dav's QB64 Corner
Reply


Messages In This Thread
RE: BASFILE - Converts small files to BAS code. - by Dav - 09-28-2023, 12:01 AM



Users browsing this thread: 1 Guest(s)