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

Support for IndexedSeq #26

Open
ochafik opened this issue Mar 18, 2015 · 1 comment
Open

Support for IndexedSeq #26

ochafik opened this issue Mar 18, 2015 · 1 comment

Comments

@ochafik
Copy link
Member

ochafik commented Mar 18, 2015

From @fdietze on March 12, 2012 14:20

Hi there,

i'm working on a project where I use ArrayBuffers in performance-critical sections. In some places I was able to replace them with Arrays, so they got while-optimized by the scalacl-compiler-plugin. But in other cases it would make the code way more unreadable or easier to replace them with while-loops myself.

So I'd like to see support for optimization of IndexedSeq in the scalacl-compiler-plugin.

Thank you!
Felix

Copied from original issue: nativelibs4java/nativelibs4java#286

@ochafik
Copy link
Member Author

ochafik commented Mar 18, 2015

Hi @fdietze ,

Thanks for your report !

I'm not sure how safe it would be to optimize IndexedSeqs in general, but ArrayBuffer seems like a good candidate indeed ! (and it probably wouldn't cost much to add an unsafe IndexedSeq optimization switch, disabled by default).

Added to my TODO list :-)

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant