Skip to content

Conversation

@CyrusNajmabadi
Copy link
Contributor

No description provided.

Conflicts:
	Jakefile
	src/compiler/commandLineParser.ts
	src/compiler/types.ts
@DanielRosenwasser
Copy link
Member

Were we just not seeing a perf improvement here?

@vladima
Copy link
Contributor

vladima commented Mar 29, 2015

@DanielRosenwasser yes, caching length of the array can be improve performance but it should be done on case-by-case basic since length of the array can be change as you iterate if elements were added\removed from the array during iteration.

@vladima
Copy link
Contributor

vladima commented Mar 29, 2015

👍

CyrusNajmabadi added a commit that referenced this pull request Mar 30, 2015
Remove experimental flag to cache for-of length checks.
@CyrusNajmabadi CyrusNajmabadi merged commit 71590de into master Mar 30, 2015
@CyrusNajmabadi CyrusNajmabadi deleted the forOfLengthCache branch March 30, 2015 05:12
@DanielRosenwasser
Copy link
Member

Sure, I get that, but I thought that was the reason it was put behind a flag. Either way this is fine.

@vladima
Copy link
Contributor

vladima commented Mar 30, 2015

@DanielRosenwasser flag is not fine grained enough, it will enable\disable caching for everything which might be incorrect.

@DanielRosenwasser
Copy link
Member

I understand that and I would presume that the users of such a flag would understand that as well, though I can see why it might not be the best choice.

@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants