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
native strings not allowed to be as big as regular strings #5260
Comments
From @MasterDuke17
There may be some perfectly good reason, but in that case maybe the error |
From @zoffixznetThis appears to hang now: zoffix@VirtualBox:~$ perl6 -e 'my $a = "a" x 2**30;say $a.chars' |
The RT System itself - Status changed from 'new' to 'open' |
From @MasterDuke17I still get the exact same error, it just takes 10+ seconds. This is Rakudo version 2016.06-204-g959cd3b built on MoarVM version On Sat, Jul 9, 2016 at 4:55 PM, Zoffix Znet via RT <
|
From @zoffixznetOh, my bad. I didn't wait long enough. Takes over a minute: zoffix@VirtualBox:~$ time perl6 -e 'my str $a = "a" x 2**30;say $a.chars' real 1m15.794s |
From @MasterDuke17Yeah, I filed the slowness as a bug (127972) a while ago. On Sat, Jul 9, 2016 at 6:23 PM, Zoffix Znet via RT <
|
From @dogbert17On my 32 bit Linux VM: dogbert@dogbert-VirtualBox ~ $ perl6 -v real 0m0.173s Seems plenty fast. |
From @MasterDuke17Fixed in rakudo/rakudo@8878af8 Test added in Raku/roast@919a2ddde6 This tests by creating a string with strands. If you want to test flat strings, an easy way is `my str $a = "a" x 4294967295; use nqp; my str $b = nqp::indexingoptimized($a); say $b.chars`; however, this takes 4Gb of ram. |
@MasterDuke17 - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#127973 (status was 'resolved')
Searchable as RT127973$
The text was updated successfully, but these errors were encountered: