|
My guess wouldbe the small print says something like 30gb peak times, 60gb outside peak hours...
___________________________________________
.\\axxx
(That's an 'M')
|
|
|
|
|
ISP's are too stupid to implement a 'complex' quota system like that.
|
|
|
|
|
Certainly a large number of Ozzie ISPs do exactly that
___________________________________________
.\\axxx
(That's an 'M')
|
|
|
|
|
Attempting to greyscale 500 odd (~2329x3500 24bpp) images using IronPython. And I mean sloooooooooooooooooooooooooooooooooow! The sort of sloooooooooooooooooooow that doesn't just necessitate the making of a brew, but also requires you to go out for a very long walk, read the paper, have a nice long nap, have dinner, enjoy some beer in the garden, go to bed feeling a bit drunk and wake up the next morning hoping the process has finished.
Of course, I'm not stupid so I did some testing first
With a single thread each image was taking > 1 minute to process. I managed to improve that a little bit by using some multi-threading savvy and got it down to, a still highly unsatisfactory, 38 seconds.
At which point I decided I'd try it in C# instead. The code is pretty much exactly the same as the IronPython implementation, the results somewhat startling. On the same machine, using the same .Net features, a single threaded C# app was able to process each image in .78 seconds (using my rudimentary timing technique).
So there you go, chums, IronPython may be quite cool - I like it! - but if you're into doing anything with images I'd probably consider using something else.
|
|
|
|
|
martin_hughes wrote: that doesn't just necessitate the making of a brew, but also requires you to go out for a very long walk, read the paper, have a nice long nap, have dinner, enjoy some beer in the garden, go to bed feeling a bit drunk and wake up the next morning
martin_hughes wrote: Of course, I'm not stupid
I see no coherence there.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Meh... I can do:
martin_hughes wrote: necessitate the making of a brew, but also requires you to go out for a very long walk, read the paper, have a nice long nap, have dinner, enjoy some beer in the garden, go to bed feeling a bit drunk and wake up the next morning
whenever I want
|
|
|
|
|
I doubt that is a problem with the language. Seems like maybe you're using it wrong and decreasing the big-O performance (say, from N to N^2). I could be wrong, but what exactly about the language itself are you expecting is slowing the process down so much (note: I have never used that language, so maybe you are right)?
|
|
|
|
|
There might be more "Python friendly" ways of doing things, but I don't think there's anything intrinsically wrong with my implementation. Line for line, it's almost exactly the same as the C# version (syntactic differences notwithstanding).
Where IronPython seems to hit a bottleneck, in this instance at any rate, is indexing into .Net typed arrays. My guess is the hit comes from all the fancy things IPY does to ensure that whilst it can do all the duck typing and dynamic stuff it can ensure that what it's dealing with is correct at runtime. C# doesn't have that problem having being assured of it all at compile time.
Give it a whirl for yourself; Python is quite a nice and friendly language and useful for a lot of things and well worth knowing something about - IronPython doubly so. I'd recommend Guido van Rossum's An Introduction to Python also: not only a useful Python introduction, but also a model of a language introductory book.
|
|
|
|
|
What version of IronPython were you running? The latest one running on .NET 4?
|
|
|
|
|
It's version 2.6.10920.0 on .Net 3.5 SP1.
|
|
|
|
|
I wonder if the version running on .NET 4 will be faster - with the DLR and all that.
|
|
|
|
|
Ok, one of the guys at work showed me this advertisement for something or other... Let me describe it, since I don't have the actual image handy...
Hot woman, laying down with her hair splayed out, seductive pose... Image only shows down just below the neck, so no clothes visible. The kind of image that if extended downward would be more suited to Playboy.
And the caption?
You know you're not the first
But do you really care?
|
|
|
|
|
Okay... But notice that you didn't remember what product the advertisement was actually for. So I'd say the ad actually kinda failed.
|
|
|
|
|
Kschuler wrote: But notice that you didn't remember what product the advertisement was actually for. So I'd say the ad actually kinda failed
He doesn't want to admit it was for this[^]
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
LOL, I'm just going to assume that link is not safe for work.
|
|
|
|
|
No kidding, and you may not want your other half to see this either.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Yeah, I can tell from the URL that I won't be clicking that :P
|
|
|
|
|
I rarely notice product names anymore... I've trained myself to be immune to advertising
|
|
|
|
|
Kschuler wrote: Okay... But notice that you didn't remember what product the advertisement was actually for. So I'd say the ad actually kinda failed.
heh. I took a Heineken marketeer to task over the very same thing. She'd put together a beautiful ad, with beautiful women taking their beautiful clothes off and jumping into a beautiful mountain spring, ending with a beautiful close-up of one of their really beautiful faces.
All that was needed was for the beautiful lips on that beautiful face at the end to utter the name of the beautiful product...
But they didn't -- FAIL!
What's not annoying is that I can't remember the name of the product, now. It's a soft drink, not a beer.
<Googles>
Rivella. It's probably on YouTube, because it was shown for a month or two.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Was it an advert for the clap clinic?
|
|
|
|
|
Could be... Don't remember.
|
|
|
|
|
I just had to post this[^] in the Soapbox 2; just to make this link.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
|
|
Yep, that's the one! Except it had a second line of print... Next post below has it with the whole thing.
|
|
|
|