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

sparse arrays for the chart #6

Open
anoopsarkar opened this issue Apr 2, 2014 · 0 comments
Open

sparse arrays for the chart #6

anoopsarkar opened this issue Apr 2, 2014 · 0 comments

Comments

@anoopsarkar
Copy link
Member

The chart is currently allocated and de-allocated for each sentence. Initialization also takes time proportional to the number of cells in the chart. We should use a sparse array trick where a single chart is allocated with a max size and for each sentence we use a sub-part of the entire chart. Also we should implement the O(1) clear operation for sparse arrays.

http://research.swtch.com/sparse

@anoopsarkar anoopsarkar added this to the speed up the parser milestone Apr 2, 2014
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

No branches or pull requests

1 participant