Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DATA fixes #470

Merged
merged 5 commits into from
Mar 25, 2024
Merged

DATA fixes #470

merged 5 commits into from
Mar 25, 2024

Conversation

a740g
Copy link
Contributor

@a740g a740g commented Mar 10, 2024

This PR addresses an issue wherein the IDE appears to freeze on macOS when processing a BASIC source file containing a large number of DATA statements.

A notable example of such a source file can be found here: tricky.bas

This PR primarily eliminates the resource-intensive string concatenation by instead allocating the necessary storage space for the string once and then copying substrings to their respective offsets.

This modification significantly reduces compile time. Moreover, this PR completely removes the dependency on objcopy, thereby simplifying DATA handling across various platforms.

@a740g a740g added the bug Something isn't working label Mar 10, 2024
@a740g a740g self-assigned this Mar 10, 2024
@a740g a740g merged commit ab23b0f into QB64-Phoenix-Edition:main Mar 25, 2024
4 checks passed
@a740g a740g deleted the llvm-mingw-fixes branch March 25, 2024 13:03
@a740g a740g mentioned this pull request May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants