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

add pool for SystemProcess/Views #12

Open
fponticelli opened this issue Feb 8, 2015 · 2 comments
Open

add pool for SystemProcess/Views #12

fponticelli opened this issue Feb 8, 2015 · 2 comments

Comments

@fponticelli
Copy link
Owner

No description provided.

@dwzzz
Copy link
Contributor

dwzzz commented May 11, 2015

Not only need pool.
Each time SystemProcess call Views.iterator() will alloc extra a lot memory for for map.keys() and a little memory for anonymous function( hasnext(), next(), holder ) in every loop.

And another issue:
the Views T is anonymous type ,so in some special platform( e.g. C# ), the generated source codes will slower http://haxe.org/manual/types-structure-performance.html .
Can macro detect these anonymous structs and create new type class and replace them?

@fponticelli
Copy link
Owner Author

I believe the allocation problem is still there but I made a few tests of classes vs anonymous and I cannot find any real difference in terms of performances.

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