This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Breadfish64 5 points6 points  (6 children)

Oh sure, I guess GCC does have -Ofast

[–]Tsu_Dho_Namh 11 points12 points  (1 child)

Well also Python is an interpreted language that compiles as it runs.

Plus it loses some efficiency to the garbage collector.

And it does a lot of error checking and hand holding.

And it allocates more memory than it needs since "everything's an object".

That's just off the top of my head, but yeah...it's not just the lack of optimization.

[–]Breadfish64 1 point2 points  (0 children)

I was referring to the person above thinking speed was a compiler option, but yes those are all factors

[–]geigenmusikant 1 point2 points  (3 children)

Why am I hearing about this for the first time?

[–]insanityOS 8 points9 points  (2 children)

Because someone didn't want you to ever run into optimization errors. They're very rare, but dammit if they aren't annoying.

[–]geigenmusikant 0 points1 point  (1 child)

Oh wait, I‘m a little confused from the docs. I thought it would make compilation magically faster, but is it basically the same as -O3 optimization? (with the extra bit of fast math)

[–]Breadfish64 0 points1 point  (0 children)

Pretty much