Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #102421
| From | "Chris M. Thomasson" <invalid@invalid.invalid> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: Why Python is slow |
| Date | 2017-01-24 19:26 -0800 |
| Organization | n/a |
| Message-ID | <o695pc$efu$1@dont-email.me> (permalink) |
| References | <9048e105-65e6-4e8c-a42f-b37e1d327246@googlegroups.com> <o68ts6$ru2$1@dont-email.me> |
On 1/24/2017 5:11 PM, Chris M. Thomasson wrote: > On 1/24/2017 10:22 AM, thunderbirdmember@gmail.com wrote: >> Everyone saying that. And my neighbour is all upset >> about something getting out of the house and complaining. >> He doesn't like his car because he stuns it every time >> he gets in or out. He don't realise that he stuns his mind too. >> Obviously he wants a new car. But he is stuck here being a student. >> >> Python is easy to write but is slow executing things. >> So how much slower Python is compared to C. Experiment >> was done on a nested loop of the same features in both >> languages with same number of iterations and same logic: >> >> loop.py 0.219s >> loop.pyc 0.314s >> loop.c 0.088s >> >> For some reason pre-compiled python object ran slower >> than interpreted script. >> > > Python is slow? Na. Its really slow, check this encryption technique out: > > http://pastebin.com/raw/QarNLfn3 > > the code can be run online here: > > https://repl.it/languages/python3 > > Here is output I get: > _____________________________ > Chris M. Thomasson 8/20/2016 > Reverse Iteration Fractal Cipher (RIFC) > Pre-Alpha Version: 0.0.0 > In-Memory Byte Level Version > File based version is on its way > ======================================================= > > > > rifc:(fskey:(z:(-0.74543+0.11301j), c:[(0.677+0.2j), (-0.21-0.751j), > (-0.0505+0.64j)], p:[4, 3, 5], r_n:2, n_n:3, hmack:hmac_skey_123)) > > > original_plaintext, length: 80 > ______________________________________________ > AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA > > ______________________________________________ > > > ciphertext, length 42 Length 42 here means 42 complex numbers in the ciphertext, NOT 42 bytes. There is also HMAC key. > ______________________________________________ > (649570f4addd71f8465a1aae6bc069ad) > (-0.11375803457697138-1.0685502316737907j) > (-0.1271064825318161+0.8348680631162264j) > (-0.9465802124429011-0.021669884533826154j) > (-0.7683793642809116+0.6958660388088035j) > (0.5937917954594152-0.6008683998579958j) [....]
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Why Python is slow thunderbirdmember@gmail.com - 2017-01-24 10:22 -0800
Re: Why Python is slow Richard Heathfield <rjh@cpax.org.uk> - 2017-01-24 18:33 +0000
Re: Why Python is slow Richard Heathfield <rjh@cpax.org.uk> - 2017-01-24 20:14 +0000
Re: Why Python is slow luser droog <luser.droog@gmail.com> - 2017-01-26 10:13 -0800
Re: Why Python is slow Tim Rentsch <txr@alumni.caltech.edu> - 2017-01-30 05:50 -0800
Re: Why Python is slow bart4858@gmail.com - 2017-01-24 13:21 -0800
Re: Why Python is slow BartC <bc@freeuk.com> - 2017-01-24 22:23 +0000
Re: Why Python is slow "Chris M. Thomasson" <invalid@invalid.invalid> - 2017-01-24 17:11 -0800
Re: Why Python is slow "Chris M. Thomasson" <invalid@invalid.invalid> - 2017-01-24 19:26 -0800
Re: Why Python is slow "Chris M. Thomasson" <invalid@invalid.invalid> - 2017-01-25 12:50 -0800
Re: Why Python is slow BartC <bc@freeuk.com> - 2017-01-25 21:52 +0000
Re: Why Python is slow "Chris M. Thomasson" <invalid@invalid.invalid> - 2017-01-25 14:30 -0800
Re: Why Python is slow BartC <bc@freeuk.com> - 2017-01-25 22:59 +0000
Re: Why Python is slow "Chris M. Thomasson" <invalid@invalid.invalid> - 2017-01-27 13:20 -0800
Re: Why Python is slow DFS <nospam@dfs.com> - 2017-01-25 19:22 -0500
Re: Why Python is slow "Chris M. Thomasson" <invalid@invalid.invalid> - 2017-01-26 13:40 -0800
Re: Why Python is slow David Brown <david.brown@hesbynett.no> - 2017-01-25 10:29 +0100
Re: Why Python is slow gazelle@shell.xmission.com (Kenny McCormack) - 2017-01-25 10:38 +0000
Re: Why Python is slow Malcolm McLean <malcolm.mclean5@btinternet.com> - 2017-01-26 06:44 -0800
Re: Why Python is slow Richard Heathfield <rjh@cpax.org.uk> - 2017-01-26 15:00 +0000
Re: Why Python is slow Ben Bacarisse <ben.usenet@bsb.me.uk> - 2017-01-26 17:23 +0000
Re: Why Python is slow supercat@casperkitty.com - 2017-01-26 09:42 -0800
Re: Why Python is slow Ben Bacarisse <ben.usenet@bsb.me.uk> - 2017-01-26 18:24 +0000
Re: Why Python is slow David Brown <david.brown@hesbynett.no> - 2017-01-26 16:14 +0100
Re: Why Python is slow Malcolm McLean <malcolm.mclean5@btinternet.com> - 2017-01-26 12:49 -0800
Re: Why Python is slow Robert Wessel <robertwessel2@yahoo.com> - 2017-01-26 15:11 -0600
Re: Why Python is slow David Brown <david.brown@hesbynett.no> - 2017-01-26 23:56 +0100
Re: Why Python is slow Keith Thompson <kst-u@mib.org> - 2017-01-26 15:20 -0800
Re: Why Python is slow David Brown <david.brown@hesbynett.no> - 2017-01-27 09:31 +0100
Re: Why Python is slow fir <profesor.fir@gmail.com> - 2017-01-27 07:24 -0800
Re: Why Python is slow fir <profesor.fir@gmail.com> - 2017-01-27 07:57 -0800
Re: Why Python is slow fir <profesor.fir@gmail.com> - 2017-01-27 08:46 -0800
Re: Why Python is slow supercat@casperkitty.com - 2017-01-27 08:06 -0800
Re: Why Python is slow fir <profesor.fir@gmail.com> - 2017-01-27 08:39 -0800
Re: Why Python is slow fir <profesor.fir@gmail.com> - 2017-01-27 13:29 -0800
Re: 3**3**3**3 Noob <root@127.0.0.1> - 2017-01-27 14:33 +0100
csiph-web