| Woosta | OK, that feels better :) Mmm .. though cStyle just went up to 27 secs! waiting for reverseStyle .. 25 secs |
| ew73 | Bwha! |
| digitok | sabakas: ${bla}1 ;o wait what the hell This isn't even php chan *smacks head* |
| f00li5h | digitok: php? where? |
| Woosta | cStyle: 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? |
| aSmig | I 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; } } } )' |
| Woosta | perl -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)} } } )' |
| JasonKing | Here'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. |
| aSmig | ohyea, this is not what sleep feels like. |
| JasonKing | My only defense is that my memory is from probably 5.005_03 days. |
| xand | don't paste |
| f00li5h | JasonKing: yeah, the bastards keep making things faster! |
| ew73 | Acrobat reader to not suck,plz. |
| CaT[tm] | man. the oom killer has gotten a tad accurate. |
| janhaa | hi 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") |
| rindolf | janhaa: use LWP::UserAgent |
| niks | i am using a par'ed EXE which uses SOAP, but when i execute it on windows it gives depency error of SSLeay32.dll |
| janhaa | ok. |
| niks | any idea what could be problem? |
| rindolf | niks: you need to install the OpenSSL DLL. |
| niks | rindolf: its runs on machine i am creating exe but nt on others |
| ew73 | Everyone do the What is Love! dance! |
| niks | its par module so dll should be packaged within exe |
| odrm | janhaa: i just tried LWP::Simple's getprint "https://u:p@example.com" # and it provided the credentials correctly |
| janhaa | odrm, strange... |