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

Optimization: Type safe GenericListIterator #11

Open
gamedevsam opened this issue Oct 1, 2013 · 1 comment
Open

Optimization: Type safe GenericListIterator #11

gamedevsam opened this issue Oct 1, 2013 · 1 comment

Comments

@gamedevsam
Copy link

typedefs don't yield typesafe code. This essentially means each iterator "node" is a Dynamic object which is slow. I recommend using private class HasNext<T> instead of typedef.

@nadako
Copy link
Owner

nadako commented Aug 3, 2015

I think we should get rid of GenericListIterator at all and provide strictly typed inlineable iterators for each collection. I'm not sure if I'll find time/motivation to work on that soon, but that's how it should be done it seems.

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

2 participants