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

Try caching SourcePos objects #20

Open
Infernio opened this issue Feb 21, 2022 · 0 comments
Open

Try caching SourcePos objects #20

Infernio opened this issue Feb 21, 2022 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@Infernio
Copy link
Member

Infernio commented Feb 21, 2022

They're immutable and creating them may be expensive enough that cachhing could be worthwhile - depends on how often the line/column are identical.

Another option could be dropping them entirely in favor of tuples or keeping the ctx.start object around.

@Infernio Infernio added the enhancement New feature or request label Feb 21, 2022
@Infernio Infernio added this to the v0.1.0 milestone Feb 21, 2022
@Infernio Infernio modified the milestones: v0.1.0, v0.2.0 Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant