Skip to content

Collect required lines instead of using them all #3

Closed
@1Computer1

Description

@1Computer1

Right now, all the source lines are just put into an array and indexed into when necessary. This of course forces the entire list of lines, which is not the best for performance nor space. Instead, we could collect all the required lines into an IntMap or similar by using the line numbers and styling options from the given Errata.

The makeSourceLines function within the renderSourceLines function contains the logic for which lines are required. It might also be worth investigating refactoring the entire renderSourceLines function so that it isn't so big.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions