Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #73943

Re: eGenix at the EuroPython Conference 2014

Newsgroups comp.lang.python
Date 2014-07-04 02:24 -0700
References <mailman.11482.1404463396.18130.python-list@python.org>
Message-ID <4b6f777c-d92b-4d99-872e-8a8cbf11b2ec@googlegroups.com> (permalink)
Subject Re: eGenix at the EuroPython Conference 2014
From wxjmfauth@gmail.com

Show all headers | View raw


==============

>>> sys.getsizeof('a')
26
>>> sys.getsizeof('EURO')
40
>>> import timeit
>>> timeit.timeit("('abc'*1000 + 'z').find('z')")
2.4989620382882043
>>> timeit.timeit("('abc'*1000 + 'EURO').find('EURO')")
5.09689729988173
>>> 
>>> 
>>> # ditto, for a dozen European languages
>>> # languages using a latin alphabet with
>>> # some small exceptions (eg German (Germany))
>>> 
>>> # Py3.2 does better!
>>>

jmf

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

eGenix at the EuroPython Conference 2014 "eGenix Team: M.-A. Lemburg" <info@egenix.com> - 2014-07-04 10:43 +0200
  Re: eGenix at the EuroPython Conference 2014 wxjmfauth@gmail.com - 2014-07-04 02:24 -0700

csiph-web