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

non-utf8 string handling in p5_to_p6() very slow #82

Open
jdv opened this issue Dec 18, 2016 · 0 comments
Open

non-utf8 string handling in p5_to_p6() very slow #82

jdv opened this issue Dec 18, 2016 · 0 comments

Comments

@jdv
Copy link

jdv commented Dec 18, 2016

I'm gonna guess the buf is resizing itself way too much as evidenced by the tons of calls to
brk and mremap.

Here's how I tripped over this:

[jdv@new-host-2 p6-agency]$ cat get.pl6
use v6;
use HTTP::Tiny:from;

my $h = HTTP::Tiny.new;

my $t1 = now;
my %response = $h.get('https://www.google.com');
$t1 = now - $t1;

my $t2 = now;
dd %response;#;
#say %response.decode('iso-8859-1');
$t2 = now - $t2;

say $t1;
say $t2;
[jdv@new-host-2 p6-agency]$

For even more time spent try fetching youtube.

niner added a commit that referenced this issue Mar 11, 2017
By using blob8's constructor that takes a Positional, we can save a lot of
ASSIGN-KEY calls. This saves about 60 % of the time to convert youtube.com's
source code.

Improves GH #82
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

1 participant