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

Possibly Related Threads…
Thread Author Replies Views Last Post
  BASFONT - Turns a FONT into BAS code SUB for using in your programs. Dav 9 2,893 09-04-2023, 12:13 AM
Last Post: grymmjack
  BASIMAGE - Put image files in BAS code to use with _PUTIMAGE Dav 12 3,773 07-17-2023, 03:18 AM
Last Post: SpriggsySpriggs
  UnscramblePic.bas - Rotate picture pieces puzzle Dav 14 3,723 07-15-2023, 07:12 PM
Last Post: Steffan-68
  RightClickMenu - Small right click popup menu function Dav 0 920 04-29-2022, 03:20 AM
Last Post: Dav

Forum Jump:


Users browsing this thread: 1 Guest(s)