My goal is to get a string from the programming slot, but quicker than I am now. First I tried a very basic technique of going though each in line and adding it to the string like this:
VAR STRING$="" FOR I=1 TO PRGSIZE(1,0) STRING$=STRING$+PRGGET$() NEXTThis worked fine for smaller programs, but I then I tried it with a bigger program: 3D Parkour Pro, which is 5045 lines long. It took 125 seconds. Since strings slow down when the get big, I tried another tactic:
VAR STRING$="" DIM H$[1] FOR I=0 TO PRGSIZE(1,0) H$[0]=H$[0]+PRGGET$() IF LEN(H$[0])>=10000 THEN UNSHIFT H$,"" NEXT FOR I=0 TO LEN(H$) STRING$=H$[I]+STRING$ NEXTThis worked better, with it clocking in at 109 seconds. I would like it to be under a minute though and have no idea how I can shave off more seconds. Any suggestions would be very helpful. Also I DO NOT want to use built in LOAD or SAVE functions for this, unless they can work on unsaved slots. Thanks! NOTE: Tests done on Old 3DS. If someone could test the speed on a New 3DS that would be very helpful!