Stack Overflow moderator “animusonâ€

D

Dave Angel

And do not forget memory. The €uro just become expensive.

40

I do not know. When an €uro char need 14 bytes more that
a dollar, I belong to those who thing there is a problem
somewhere.

Oh, I totally agree. But it's not just the Euro symbol that's
expensive. Look how much I have to pay for a couple of square
brackets!
sys.getsizeof((1)) 14
sys.getsizeof([1])
40

And look how much a comma costs us (on 64bit 3.3):
sys.getsizeof((1)) 28
sys.getsizeof((1,)) 64
sys.getsizeof([1])
80

;-)
 
K

Kevin Walzer

A moderator who calls himself “animuson†on Stack Overflow doesn’t
want to face the truth. He has deleted all my postings regarding Python
regular expression matching being extremely slow compared to Perl.
Additionally my account has been suspended for 7 days. Such a dickwad.

Mats

And we should care because...?
 
J

Joshua Landau

And do not forget memory. The €uro just become expensive.

40

I do not know. When an €uro char need 14 bytes more that
a dollar, I belong to those who thing there is a problem
somewhere.

Oh, I totally agree. But it's not just the Euro symbol that's
expensive. Look how much I have to pay for a couple of square
brackets!
sys.getsizeof((1)) 14
sys.getsizeof([1])
40

But when you do it generically, square brackets save you space!
sys.getsizeof((int)) 392
sys.getsizeof([int])
80

:D
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,151
Latest member
JaclynMarl
Top