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

Reduce memory usage and fix leak #39

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

SeanEveson
Copy link
Contributor

A number of changes refactoring and reducing memory usage.

USER FACING CHANGES:

  • CodeLines no longer have an offset in the YAML output, instead they have a new Address attribute.

Move filepaths out of Element into Object and then make Line inherit from
Object (rather than Element). This reduces sizeof(Line) from 88 to 64.
Move Tag and Offset out of Object and into Element. This reduces sizeof(Line)
from 64 to 56.

-- User facing changes --
CodeLines no longer have an offset in the YAML output, instead they have a new
`Address` attribute.
@SeanEveson SeanEveson changed the title Save space Reduce memory usage and fix leak Jan 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant