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

Issue #340. Remove old optimization to avoid looking at arrays in get. #363

Merged
merged 1 commit into from
Nov 26, 2013

Conversation

rragan
Copy link
Contributor

@rragan rragan commented Nov 9, 2013

Issue #340

Original code (pre $idx) tried to optimize get by not checking for value when an array was at the head. With the addition of $idx, this "optimization" breaks a use case. Removing the array check when creating a Stack entry fixes the problem by allowing get to go ahead and discover the $idx value on the stack. Added a test for the reported problem.

@brikis98
Copy link

LGTM. We should merge this.

smfoote added a commit that referenced this pull request Nov 26, 2013
Issue #340. Remove old optimization to avoid looking at arrays in get.
@smfoote smfoote merged commit a1fcbc8 into linkedin:master Nov 26, 2013
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.

3 participants