We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Performance of the SB-Prime Editor
#7
Hi Scout,

I just seen this.  I cannot see an easy way to cope with this in general.  However, when I did the last fix for the lexing limiting it to 1000 characters that I guessed would be OK for most pages, I did add a setting to modify this value.

If you look for the settings config file somewhere in %appdata%.  Mine is at "C:\Users\steve\AppData\Local\LitDev\SB-Prime.exe_Url_5ge2lq5zwv0dmwwzggpbckh41oxaqouj\1.1.9.0\user.conf".  Check the date as there may be more than one, if different versions have been installed.

In this file modify the following setting from 1000 (default) to 100000

            <setting name="MaxStylingCount" serializeAs="String">
                <value>1000000</value>
            </setting>

This will slow the large file cases a bit, but will work for this ArdiArdi case.  In general a line with 100000 characters is not a great way to add data to a code - a file would be better, but I understand why it is done this way.

I can see that if a single line exceeds the maximum, the code will badly struggle as you show.  I could check the max line length when a file is loaded, but not if a line is pasted or otherwise dynamically changed.  Continually checking would of course also slow things, but I may have a go.

UPDATE

I have uploaded a version that does check line length and seems to work well, so I recommend remainin g with the default value of 1000 and updating to latest update, easiest using the Adavnced->Update option.
[-] The following 2 users Like litdev's post:
  • AbsoluteBeginner, Scout
Reply


Messages In This Thread
Performance of the SB-Prime Editor - by Scout - 11-12-2023, 04:06 PM
RE: Performance of the SB-Prime Editor - by Scout - 11-13-2023, 09:54 PM
RE: Performance of the SB-Prime Editor - by Scout - 11-14-2023, 11:12 AM
RE: Performance of the SB-Prime Editor - by Scout - 01-13-2024, 02:40 PM
RE: Performance of the SB-Prime Editor - by litdev - 01-15-2024, 07:22 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)