#perl - Mon 5 Mar 2007 between 08:00 and 08:20



WoostaOK, that feels better :)
Mmm .. though cStyle just went up to 27 secs!
waiting for reverseStyle ..
25 secs
ew73Bwha!
digitoksabakas: ${bla}1
;o
wait what the hell
This isn't even php chan *smacks head*
f00li5hdigitok: php? where?
WoostacStyle: 26 wallclock secs (26.49 usr + 0.00 sys = 26.49 CPU) @ 377.50/s (n=10000)
reverseStyle: 26 wallclock secs (24.86 usr + 0.00 sys = 24.86 CPU) @ 402.25/s (n=10000)
(I don't get the math on the reverseStyle one ..)
CaT[tm]what are you using for the benchmark now?
aSmigI get 21 and 18: perl -MBenchmark -e 'timethese(1000,{ cStyle => sub{ for( my $i = 0; $i < 100000; $i++){ my $n = 1; } }, reverseStyle => sub{ for my $i ( 0 .. 100000 ){ my $n =1; } } } )'
Woostaperl -MBenchmark -e 'timethese(10000,{ cStyle => sub{ my @list; for( my $i = 0; $i < 10000; $i++){push(@list, $i)}}, reverseStyle => sub{ my @list; for my $i ( reverse (0 .. 10000) ){push(@list,$i)} } } )'
JasonKingHere's the same with a simple assignment of $i to $::x inside each loop:
Benchmark: timing 10000 iterations of cStyle, reverseStyle... cStyle: 12 wallclock secs (10.39 usr + 0.11 sys = 10.50 CPU) @ 952.38/s (n=10000)
reverseStyle: 6 wallclock secs ( 5.41 usr + 0.05 sys = 5.46 CPU) @ 1831.50/s (n=10000)
I retract my earlier statement, reverse kicks.
aSmigohyea, this is not what sleep feels like.
JasonKingMy only defense is that my memory is from probably 5.005_03 days.
xanddon't paste
f00li5hJasonKing: yeah, the bastards keep making things faster!
ew73Acrobat reader to not suck,plz.
CaT[tm]man. the oom killer has gotten a tad accurate.
janhaahi
i want to check if a username/password is correct. i want to query this with "https://$username:$password\@$server/$path" can LWP::Simple do that?
i cannot login with head(), but maybe i'm doing it the wrong way? head("https://.....")
uhm... head("https://user:pass/foo.com/bah")
rindolfjanhaa: use LWP::UserAgent
niksi am using a par'ed EXE which uses SOAP, but when i execute it on windows it gives depency error of SSLeay32.dll
janhaaok.
niksany idea what could be problem?
rindolfniks: you need to install the OpenSSL DLL.
niksrindolf: its runs on machine i am creating exe but nt on others
ew73Everyone do the What is Love! dance!
niksits par module so dll should be packaged within exe
odrmjanhaa: i just tried LWP::Simple's getprint "https://u:p@example.com" # and it provided the credentials correctly
janhaaodrm, strange...

Page: 2 9 16 23 30 37 44 51 58 65 72 79 86 

IrcArchive